File: demo6

package info (click to toggle)
xball 3.0-16
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,004 kB
  • ctags: 1,358
  • sloc: ansic: 4,612; sh: 3,415; makefile: 522
file content (26 lines) | stat: -rw-r--r-- 272 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Xball word collides with itself horizontally


load_bitmap xball.xbm 0,0
#load_bitmap /usr/include/X11/bitmaps/left_ptr 0,0

collide off
set_velocity abs 10,0
gravity 0
elasticity 100


iterate 100

collide on

iterate 150

elasticity 80
gravity 30

iterate 300

exit