Play game
TweetJam5 Helicopter Drop's itch.io pageHow many characters of code did you use?
541
Include your code here, if you'd like to show it off!
x=50
y=10
dx=rnd(85)+10
dy=0
wx=0
wy=82
sc=0
s=10
sp=2
d=0
w=128
function _update()
if d==1 then
dy+=2
else
dy=y+8
dx=x
end
if wx<w then
wx+=sp
else
wx=0
end
if (btn(0))and x>9then
x-=2
end
if (btn(1))and x<119then
x+=2
end
if (btn(3)) and d==0 then
d=1
end
if (wx>dx-s and wx<dx+s) and (wy>dy-s and wy<dy+s) then
dy=0
sc+=1
sp+=.5
d=0
end
if dy>=100 then
dy=y+8
d=0
end
end
function _draw()
cls()
rectfill(x-5,y-5,x+5,y+5,7)
rectfill(dx-2,dy-2,dx+2,dy+2,8)
rectfill(wx-5,wy-2,wx+5,wy+2,4)
rectfill(0,85,w,w,3)
print(sc,62,8,12)
end
Leave a comment
Log in with itch.io to leave a comment.
Comments
No one has posted a comment yet