Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
A jam submission

Helicopter RescueView game page

​Rescue the little people before they succumb to the raging wildfires! #pico1k
Submitted by Troypicol (@troypicol) — 28 days, 6 hours before the deadline
Add to collection

Play game

Helicopter Rescue's itch.io page

Characters/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.

Comments

Submitted(+1)

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 :)

Submitted(+1)

would benefit from a how to play sentence or two. my understanding atm is u can only land slowly on the tops of hills and if ppl are around u, u get them. if fire nearby u likely to die. I got like 3 ppl when there were only 2 showing, mbe 1 was ontop of other idk. Favourite part was exploding when landing in water. graphics and sfx very good

DeveloperSubmitted

Seems like you've mostly worked it out! Yes, you can only land gently on flat land that is at least the width of the helicopter (so you can land in valleys if very careful). Anything within the helicopter bounding box will kill you basically. And yeah sometimes there are guys in the same position just due to using random number.

Submitted

hay can you please tell me how to code a sound effect in the code editor

DeveloperSubmitted

https://pico-8.fandom.com/wiki/P8SCII_Control_Codes#Audio_commands

Submitted

This is pretty neat. The animation and sound help it feel more fleshed out,  and the ocean you come across after a few screens, makes the game world feel a lot bigger. I wonder if the requirement for how flat the ground must be to land might be adjusted, though, as a number of times I tried to set down on what looked like flat ground, only to have the helicopter explode. o_O

DeveloperSubmitted

Thanks! Yeah the collision detection is not pixel perfect, so in the valleys, if the whole helicopter width isn't within the flat area it will collide. You're right though it would probably be better to shrink the collision width to be more forgiving even if that allows a little overlap on the sides. (Also if you try to land at too high a speed it will explode of course even on flat ground)

HostSubmitted(+1)

Great (+addictive) game!
Nice use of SFX - esp. the helicopter, sounds great! 🤓👍