The code

Everything below is fetched live, so what you read is exactly what is flying right now. Back to how flying works.

J'aime Voler: the whole game

One HTML file: the flight model, Level and Acro modes, the island and its gates, ghost laps, sound, and the Open Arcade score hook. Save it, open it, and it plays.

Download jaime-voler.html

Loading the live file...

The flight model, extracted (fly-core.js)

Just the flying, pulled out of the game into one commented file: the state, the four inputs, both modes, thrust with a real hover point, and the FPV and chase camera math. It needs three.js and a ground height function from your world; everything else is in the file.

Download fly-core.js

Loading the live file...