home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip: Shareware for Win 95
/
Chip-Shareware-Win95.bin
/
grafika
/
formula
/
killfire.sx_
/
killfire.sx
Wrap
Text File
|
1995-08-15
|
514b
|
29 lines
/////////////////////////////
// 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