I loved choplifter back in the day, amazing you managed to squeeze a fun little chopper rescue game into 1021 bytes! having a choppy sea if you go the "wrong" way is great too :)
Play game
Helicopter Rescue's itch.io pageCharacters/Bytes used
Chars: 1015, Bytes: 1021
Source Code
x=12y=92c=0u=0v=0s=127d=0m=0p={}q={}h=pget
for i=1,10do
add(q,rnd(370)+128)add(p,rnd(370)+128)end::_::k=camera
?"\^1\^cc\ai6x4c0"
b=btn()i=b\2%2-b%2j=b\8%2-b\4%2x+=u/4y+=v/4if(i!=0)f=b&1>0u+=i
if(b&32>0)run()
v+=j
u*=.95v*=.95for n=3,129do i=ord("3etct6u6696uy6xp8p1uvyyuyp9xy7yycc6rrc5t35w",n\3)sset((n-3)%16,(n-3)\16,i\3^(n%3)%3)end
for i=0,s do line(i,117+4*sin(i/40+c/25),i,s,1)end
k(x\s*s)for i=0,s*4do
line(i,i<28and 96or 108+5*sin(i/60),i,s,3)end
for i in all(q)do
for j=-c\99,c\99do
z=i+j
for n in all(p)do
if(n\1==z\1)del(p,n)end
l=108+5*sin(z/60)line(i+j,l-rnd(c%3),i+j,l+3,8)end
end
for i in all(p)do
?"웃",i-3,109+5*sin(i/60),6
end
k()w=x%s
for i=0,3do
if(h(mid(0,s,w+(i&1)*8-4),y+(i&2)*4-5)!=12)then
?"\asfi6g1c",0,0
for i=1,6do
circfill(w,y,i*3,9)flip()end
run()end
end
if(v>=0and h(w-3,y+4)!=12and h(w+2,y+4)!=12)then
if(x<28)m+=d d=0
for i in all(p)do
if(abs(x-i)<16and d<4)d+=1del(p,i)end
y\=1u=0v=0end
spr(c\2%2,w-4,y-4,1,1,f)c+=1
?"웃"..d.."/4",2,4,7
?m.."/10 saved\nretry ❎",99*(#p+d)+48,60
goto _
Leave a comment
Log in with itch.io to leave a comment.