Log In  

Cart #tenkizoti-4 | 2020-04-10 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
100

Hi Aviator!

This is a tiny flight simulator based on a Cessna-172R with a G1000 glass cockpit. (This is the plane I fly in real life, so I thought it would be a challenge to see if it can be done with Pico-8.)

The flight model is not based on theory but on my observations as a pilot. I have to say that it's quite good ;-) Within the limits of Pico-8 it quite feels like the real thing.

Disclaimer: while I created the instruments and the flight model, the majority of the programming work was done by @freds72, including 3D outside view, code structure, eye candy, music, etc. Many thanks Fred, this would not have been possible without your ninja programming skills!!

If you want to go flying right away, the cheatsheet will get you in the air in less than 1 minute:

If you are more the serious type, there is a 34-page flight manual, which explains everything in detail and features 20+ flight lessons.

We also created an entire area you can fly in (with a mountain, an island, ships and much more):

Just as a sneak preview, here are some of the things you can do:

Smooth landings

High speed buzzing

Illegal low-level flying at night

Instrument flying in the clouds

Here is the real cockpit on a flight in the Swiss alps to compare:

Update 1.1

  • fixed polygon gaps
  • added collision detection for wind turbines

Update 1.2

  • sub-pixel polygon rasterization
  • faster textured clouds
  • fixed ugly crash

Update 1.3

  • fixed: crash when geometry is fully clipped
  • added: HUD-mode (player 2 down key to toggle)
P#20854 2016-05-19 08:30 ( Edited 2020-04-10 12:40)

All Comments

The full approach is probably worth explaining in more detail. You are inbound to Pico VOR (a navigation beacon - blue dot on map display) at 3000 feet. You will now continue to fly your inbound course of 313 degrees while remaining at 3000 feet. The blue arrow on the HSI (horizontal situation indicator - round instrument in the middle) always points towards Pico VOR and the number at the bottom left shows the distance to it in nautical miles. As you pass over Pico VOR, you will observe that the bearing pointer changes direction and now points directly behind you and the distance to the VOR will start increasing. Continue to fly a heading of 313 degrees at 3000 feet while observing the distance from the VOR.

Pay close attention to the green arrow on the HSI once you are at 6 miles. The middle part of the arrow will start moving towards the airplane symbol, which means that you approach the runway centerline. Once you are almost on the centerline, start turning to a heading of 265 degrees - AWAY from the airport! This is now the moment to reduce power (to around 2000 RPM) and descend to 2000 feet (at around 1000 feet per minute).

Level off at 2000 feet and slowly turn right 45 degrees to a heading of 310. Fly for one minute and turn left 180 degrees to a heading of 130. Now you are at a 45 degree intercept angle for the final approach towards the airport. Once again, closely observe the middle part of the green arrow on the HSI. As it starts moving towards the airplane symbol slowly turn left the final approach heading of 85 degrees.

Try to keep the moving part of the green arrow in the middle (this means that you are on the extended runway centerline). If it is to the left of the airplane symbol this means that you are to the right of the runway centerline. Turn left a couple of degrees to re-intercept the centerline and turn back to the final approach heading 85. Keep the line centered! Now things start getting busier.

At around 6 miles from the airport (pink number on top right), the green dot next to the altimeter will start moving. This is the glide slope indicator and it will tell you how much you need to descend to end up at the beginning of the runway. Once it starts reaching the center, you will start a gentle descent towards the airport: deploy flaps (Q), reduce power to around 1700 RPM and lower the nose a bit, such that you get an indicated airspeed of around 90 knots and a descent rate of around -500 feet per minute. This will keep the glide slope centered. If the green dot is above the center, this means that you are below the glide slope and you need to pitch up and add a little bit of power to re-intercept the glide slope. Try to keep the glide slope and the green arrow centered.

At around 3 miles from the airport, you will see it appear as a green dot on the map display. Keep everything centered! At around 200 feet, reduce power to around 1200 RPM to slow down the airplane to 65 knots while still keeping the green arrow and glide slope centered. At around 50 feet, slowly reduce power to idle and start gently raising the nose. Your goal is to be in a slightly nose high attitude, at 50 knots by the time the altimeter and the distance to the airport both read zero.

Congratulations, you have successfully shot an instrument approach and landed the airplane - welcome to Tiny Municipal Airport!

This description is valid with no wind. If you fly with wind, it will push you away from where you want to fly, so you need to correct your heading a couple of degrees into the wind. Check the wind arrow to see where it is blowing from. Example: if you are on final approach (heading 085) and the wind is blowing from the left (060), it will push you to the right. The localizer will start moving to the left, so you will need to correct into the wind and towards the localizer to a heading of let's say 078 to recenter the localizer.

If this is confusing for you, here is what the entire will more or less look like in the map screen.

P#23731 2016-06-27 03:43 ( Edited 2017-01-13 15:08)

Holy moley. So great.

P#32675 2016-11-21 12:45 ( Edited 2016-11-21 17:45)

Oh boy. I remember my Dad spending hours on Spectrum 48k Flight Simulator.

I never did get it, but I LOVE your passion in doing this. Nice work =)

P#32837 2016-11-30 12:05 ( Edited 2016-11-30 17:05)

lol. I DID spend hours at a friend's on "mission delta". not sure I still could. those were the times ;)
youtube Mission Delta Oric Atmos

awesome work yellowbaron!

P#35603 2017-01-13 11:28 ( Edited 2017-01-13 16:28)

I am really impressed by this project, a lot less by the code structure and how you do 3d!!

:/

I have a solid framework to do 3d flightsims (draft below) - happy to colaborate if you want.

Cart #kawerateyo-0 | 2018-12-19 | Code ▽ | Embed ▽ | No License

P#60113 2018-12-19 21:28 ( Edited 2018-12-19 21:47)

@freds72 Thanks for your comment regarding code structure and 3d. These are literally my first lines of code and I'm afraid that this is about as good as it gets ;-) This being said, I am seriously impressed by your projects! If you have some time to spare, I would be more than happy to collaborate and improve this cart.

P#60139 2018-12-20 08:24

I’ll be in vacation next week, I’ll try to make a shell you can fit in - DM via Twitter for further discussions.

P#60168 2018-12-20 14:03

Thanks, will do. My Twitter handle is @tcueni. I am now following you, so you should be able to send me a DM. Have a good vacation!

P#60234 2018-12-22 10:02 ( Edited 2018-12-22 10:02)
1

For those interested, unminified source code & assets can be downloaded from:
https://github.com/freds72/tiny_sim

Thanks to:

  • Mini json parser from Tyler Neylon: lua JSON parser
  • trifill (untextured): @p01
  • music lifted from "public" MIDI files, simplified and converted with midi2pico.
P#63625 2019-04-17 21:02 ( Edited 2019-04-17 21:05)

How funny, just last night I was looking into the Jet de GO! series and learned about an old arcade game called Midnight Lander which this very much resembles. This is really cool, gonna have to spend some time with it.

P#63626 2019-04-17 21:23

HOLY COW. So Much progress. And I thought that the first version was amazing.

P#63635 2019-04-18 06:41

I managed to land at the 3rd try !
Great job on pico8 and on the manual too !

P#63651 2019-04-18 21:42

Haha, this is hilarious. I love the music that goes along with this flight simulator too. Great job!

P#63685 2019-04-19 13:55

This is absolutely amazing! I love it.

P#64244 2019-05-08 20:29
4

I really appreciate the amount of documentation and extra-pico8 content and instruction that this game has. I think a lot of game makers should take this level of detail for their releases. It really ups the level of polish a game has and while I'm not into flight sims, I find this aspect of this game (and the presentation itself) to be above and beyond. Kudos and you other developers, take note...this is how a game is really 'complete'. It doesn't stop when the code's done and the game posted. Manuals were/are a thing and really add the immersion of any game!

P#64485 2019-05-17 05:08

My God, how long did this take? This is absolutely beautiful. Bravo!

P#65198 2019-06-14 17:51

Thanks!
The repo gives you the stats - we spent something like 4/5 months on it (given we both have full time jobs). That said, @yellowbaron had the MFD display ready before (see older versions).

Source: repo commit activity

P#65214 2019-06-15 08:45 ( Edited 2019-06-15 08:46)

Just encounter a little bug. It happens short after I start the first landing, I push the left key to see what happens :D and after an almost perfect turn, I got this error :D

good luck

P#72237 2020-01-25 19:01 ( Edited 2020-01-25 19:39)

yep saw that - fix on its way!

P#72240 2020-01-25 21:13

Can you post 1.2 here so I can pull it up on splore?

P#72281 2020-01-27 08:47

Shame on me... 1.3 is posted now. Bonus: full screen HUD-mode.

P#74616 2020-04-10 11:21 ( Edited 2020-04-10 12:41)

Wow! Awesome job!! I never flown a Cessna, but the flight model ressemble the one from Flight Simulator (played since FS4).
As far as daytime, even though if it'll resemble gray blocks on green, it would be a very welcome addition just for flair. Also a little advice, add pixels in a light grid pattern so we can get a better sense of visual altitude

P#88715 2021-03-09 12:50

thanks - flight model is @yellowbaron real life experience dumped as lua code!

dots are displayed (dark blue) - you may have missed them!
daylight version is not planned (even if would be a nice extension)!

P#88716 2021-03-09 13:11

I found another bug after just taking off on free flight

P#92459 2021-05-23 20:06

This is truly insane. Thanks for making this! Wow...

P#95408 2021-07-28 22:49

This reminds me of Microsoft Flight Simulator. AMAZING!

P#97009 2021-09-07 16:58

that was the goal! thanks

P#97013 2021-09-07 17:17

wat

P#97016 2021-09-07 19:00

just saw other bug report - working on a fix
thanks for reporting

P#97022 2021-09-07 20:50

@BrightBlackHole I saw that too, but this game is AMAZING!

P#97026 2021-09-07 21:24

What an incredible achievement this game is. Truly amazing.

P#105209 2022-01-16 23:09

The UI is too in the way

P#120520 2022-11-12 00:51

well, that’s on purpose - real life night flying is mostly instruments!

on the Itch.io version, you can switch to a full screen view (more ‘arcade’)

P#120540 2022-11-12 13:41 ( Edited 2022-11-12 13:41)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-28 11:29:46 | 0.083s | Q:77