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
.init mov r00 0 , .update add i00 1 ;++i00 mov i01 i00 ;if(i00<15) sub i01 15 ltz i01 jnz i01 24 mov i00 0 ;reset the timer push 6.28 push 0.0 call randr ;get the random angle mov r01 rrt push 5.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) nop ;no-op ,