home *** CD-ROM | disk | FTP | other *** search
- /////////////////////////////
- // KILL MUNGER Gun fire
- //////////
-
- message "Execute KILLMAIN"
- return
-
- initialize: bitmaps, x, y, ix, iy
- s = new sprite
- u,v = 10,10
- f = 0
- return @s
-
- update_fire:
- b = bitmaps get f
- if f == 2 then d = 0
- else d = y
- sprite s bitmap b trans 0,255,0 at x-u,y-v depth d
- x = x + ix
- y = y + iy
- k = bound x,y to u,GRAPHICS_XMAX-u; v,GRAPHICS_YMAX-v mode TEST
- if f then f = f + 1
- return f == 3 || k == 0
-
- blast:
- f = 1
- u,v = 40,40
- z = call update_fire
-