This was a game I made to just learn a lil bit more on coding.
Controls:
LEFT: pull up
RIGHT: pull down
Bugs:
If you touch the ground the music will fade out to how I set up things with the gameover, I dunno how to fix it.
Anyways, I hope you enjoy and comment your airtime!



Just like @Spoup said, really fun controls and great physics! Just add some balloons, birds, turbulance or something more creative to knock the plane down for added challenge. I like it a lot. :)




I greatly enjoyed the feel of flight in this game! It's very relaxing.
Just a note:
As numbers in PICO-8 are normally represented in "16.16" bit signed fixed-point form, attempting to use a value over 32767 (the limit of a signed 16-bit number) will result in a overflow (as in the image above) and cause the value to proceed from "-32768" back up.
There's an easy resolution to this issue in this instance: using tostr(number,2)
to represent the value as a 32-bit signed integer. However, in order to correctly use the number this way, you will want to add increments of 0x0.0001 (the smallest value that can be represented in PICO-8, and equivalent to 1 if treating the number as a 32-bit int)
So, each frame the player is in the air you will want to add 0x0.0001 to their score (rather than 1) and any time you print the value you will want to use tostr(score,2)
This will allow players to rack up a score up to 2,147,483,647 before hitting an overflow.
But as suggested, you might want to add some obstacles or momentum loss over time to prevent endless scores in any case.
[Please log in to post a comment]