home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip: Shareware for Win 95
/
Chip-Shareware-Win95.bin
/
grafika
/
formula
/
killbdss.sx_
/
killbdss.sx
Wrap
Text File
|
1995-08-15
|
911b
|
54 lines
/////////////////////////////////
// KILL MUNGER Main Monster
////////////
message "Execute KILLMAIN"
return
initialize: bitmaps
s = new sprite
l = bitmaps get 0
b = l get 0
u,v = b.dim[1]/2,b.dim[0]/2
ox,oy = 0,0
x,y = 0,0
r = 0
f = 0
g = 0
update_pos: x,y
call draw_frame
if x - ox > 0 then r = 1
else if x - ox < 0 then r = 0
if f > 0 then f = 0
ox,oy = x,y
shoot:
f = 1 + g
call draw_frame
if r == 0 && g == 0
g = 1
return x-u+10, y-v+60, -16, 8
else if r == 0 && g == 1
g = 0
return x-u+55, y-v+60, -16, 8
else if r == 1 && g == 0
g = 1
return x-u+90, y-v+60, 16, 8
else if r == 1 && g == 1
g = 0
return x-u+45, y-v+60, 16, 8
draw_frame:
l = bitmaps get r
b = l get f
sprite s bitmap b trans 0,255,0 at x-u,y-v depth y
get_pos:
return x,y
///////////////////////////////////
////////////////////////////