aboutsummaryrefslogtreecommitdiff
path: root/tools/lsrc/test.lsr
blob: 6dbcb46260f416c9412f5b70181c6254343e774e (plain) (blame)
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
27
28
29
30
31
32
33
.init
mov i00 0
,

.update
add i00   1			;++i00
mov i01 i00			;if(i00<8)
sub i01 8
ltz i01
jnz i01 32
mov i00 0			;reset the timer
push 6.28
push 0.0
call randr			;get the random angle
mov r01 rrt
push 4.0
push 1.0
call randr			;get the random speed
push r01
push rrt
push 300.0
push 400.0
call createBullet	;CreateBullet(400,300,speed,angle)
mov i01 irt
push 10
push 0
call randi
push irt
push 3
push i01
call setBulletPropi	;Set random color
nop					;no-op
,