This little pico8 game was created for TweetTweet Jam 8, a competition to create a game in 500 characters of source code. I've been wanting to create a flightsim using mode7-style clouds for a while, so it was nice to have an opportunity in this Jam.

Controls

  • Left/Right to steer the plane, your turn radius is based on your velocity.
  • Up/Down to control the pitch.

The plane glides and conserves it's momentum, so pitch down to dive and speed up and pitch up to slow down and gain height. If you hit the ground the game will reset.

Code

I will be doing a write-up of the code including an uncompressed version of it soon. Will post on twitter when it is complete: https://twitter.com/D_Nocker

x=0y=24405z=4a=.3g=0h=64v=.2q=127w=16p=poke2

p(y,0)☉=camera

for i=0,512 do

circfill(i%q,rnd(q),rnd(w),i%2)mset(i%w,i/w,i)

end

pal({2})spr(0,2,2,w,w)p(y,96)p(y-29,4112)::_::b=btn()g+=v*((b&2)/2-(b&1))>>9g*=.9a+=g

h+=(b&8)/8-(b&4)/4j=h/64-1z+=v*sin(j/4)v-=j/40s=sin(a)c=cos(a)x-=s*v

y-=c*v

k=z

cls(12)pal({7,6})for i=0,q do

if(i==h)pal({9,3})k-=w

p=k/(h-i)*32tline(0,i,q,i,x-p*c-p*s,y+p*s-p*c,p*c>>6,-p*s>>6)end

l=g*999☉(l-64,j*w-80)?"\b⬆️",14

line(w,l,-w,-l,8)?"¥",-2-l,j*9

☉()if(z>w)run()

flip()goto _

StatusReleased
PlatformsHTML5
Rating
Rated 5.0 out of 5 stars
(1 total ratings)
AuthorD_Nocker
Made withPICO-8
TagsFlying, PICO-8, Pixel Art, Retro

Comments

Log in with itch.io to leave a comment.

(1 edit)

Your 500 byte demo blew my co-workers expectations about the possibilities of Pico-8 in 500 characters away.

Wow! That's really impressive. Good job!

Using those two symbols to make the body of the plane is a clever idea 🫡

(1 edit)

Fantastic game! Not to say this was a bad thing but I was fascinated when I quickly discovered you can fly backwards. It seems to me that when going up your deceleration can push your speed negative allowing you to fly backwards. I would say this feature makes the game way better. It also makes me wonder for my own projects, what kind of equation could be employed to emulate stall out. Perhaps an exponential decrease in speed plus some extra gravity? IDK. I'll have to see your explanation when you put it out to get a better handle on the physics! Still dumbfounded you made a flight simulator!

ex:

Speed=Speed/2^(Angle/PI)+if(Angle>0){Constant*DownVector/TimeStep}

Really impressive demo!

This is an incredible achievement, even without the character limitation. Well done! I appreciate how you can build momentum by angling your plane upwards or downward!

(1 edit)

very cool, i love the game, Until now I couldn't believe this game was developed in only 500 characters, amazing work 

 Translated by Google

Oo very neat work, sure gives nostalgia vibes off.

(+1)

Love it! Honestly cannot believe you completed this in 500 characters of code, it's a heckuva feat! Also, I got a little vertigo when my plane nosedived and picked up speed! Amazing work!