← Games

Schappi’s Flight Simulator

Fly a light aircraft over terrain that is generated as you go. Dawn, midday or dusk, and a different world every time.

Play in your browser

Runs in the page — nothing to install. Needs a keyboard and WebGL.

W/S pitch · A/D roll · Q/E yaw · Shift/Ctrl throttle · F flaps · C view · T time of day · M sound

Today’s challenge

    How it works

    The world is not stored anywhere. The ground height at any point comes out of a sum of sine waves, so the terrain is worked out as you reach it and the same seed always gives the same world. Every wave is tuned to fit a whole number of times across the map, which is what lets the land repeat seamlessly instead of ending at an edge.

    Flight is a real model rather than an arcade one: lift comes from angle of attack and airspeed, drag rises with both, and if you pull too hard and too slow the wing stalls and stops holding you up. Flaps buy lift at the cost of drag.

    The same noise decides what covers the ground: open sea, mountain ranges, and plains of grassland, forest and farmland. On the flattest of it stand towns with a church at the crossroads, a modern city whose towers light up at night, and an airfield. Freighters cross the open water and small boats sit inshore.

    All of it is drawn with WebGL from a single file with no build step. Tens of thousands of trees and buildings go to the graphics card in a dozen draw calls, and the fields, hedges and lit windows are worked out pixel by pixel rather than stored as pictures.

    Things to try

    • Land it. Touch down under 50 knots with the wings level and the aircraft settles instead of exploding. Harder than it sounds.
    • Find the airfield. There is a runway out there, with lights along it at night. Put it down on the centre line.
    • Fly the city at night. Press T until it is dark and go low between the towers. Mind the walls: a roof can be landed on, a wall cannot.
    • Find a trench. The dark patches under the water are genuinely deeper. The deepest are rare.
    • Fly a named world. Add ?seed=7 to the address to get the same terrain every time, and share the number.
    • Change the light. T cycles dawn, midday, dusk and night. Night is only reachable with T.
    • Sit in the cockpit. C switches between chase, cockpit and wing views. The instruments are live.