A complete, original flight game that runs from static files in a desktop browser. No build step, no network request, no commercial names or art: every mesh, texture, sound and word here was written for this entry.
You pick an airframe and a field in the hangar, then fly a sortie: five gate runs over a recognisable archipelago, then a recovery leg back to the runway. Four aircraft of very different mass and inertia, four fields with their own terrain and runway length, three missions with their own goals, and a damage and fuel model that turns each sortie into a decision about how hard to push.
The fleet is one parameterised builder driven by a table, so the same code that draws the light single also draws the four-engine widebody with its upper deck:
| Airframe | Class | Engines | Needs |
|---|---|---|---|
| SV-2 Kestrel | light single, trainer | 1 prop | 800 m |
| SV-8 Kepodang | twin turboprop, regional | 2 turboprop | 1,200 m |
| SV-9 Alap | narrowbody twin jet | 2 jet | 2,000 m |
| SV-40 Rajawali | widebody, upper deck | 4 jet | 3,000 m |
Open game/index.html from any static HTTP server — this repository ships one:
node serve.ts
W/S pitch, A/D roll, Q/E rudder, Shift/Ctrl throttle, G gear, B brakes,
C cycles chase, cockpit, walk and orbit, R restarts the sortie, H shows help.
Two cameras matter beyond the chase view. Cockpit puts you in the pilot's seat with the
glass panel, centre pedestal and overhead live in front of you. Walk stands you up inside
the flight deck — WASD and the mouse move you around it, X crouches, C returns you to the
seat — so you can cross the deck and look out of the side windows while the aircraft flies on.
game/src/ is split so each file has one job:
| File | Job |
|---|---|
main.js |
the game loop, the view state machine, the hangar hand-off |
config.js |
the fleet, the fields, the camera and lighting tables |
world.js |
assembles a field from terrain, sky, runway, gates and city |
terrain.js, noise.js |
the heightfield and the noise it is built from |
geography.js |
where the archipelago, the cities and their airfields sit |
city.js |
Jakarta, Surabaya and Denpasar: blocks, towers, port, coast |
airport.js |
runway, taxiway, apron, terminal and tower for each field |
aircraft.js |
the parameterised airframe builder: wings, engines, gear, livery |
cockpit.js |
the flight deck, the cabin and the walking pilot's box |
flight.js |
the flight model: lift, drag, thrust, gear, damage, fuel |
camera.js |
chase spring, cockpit eye, walk eye, hangar orbit |
hud.js |
tapes, compass, minimap, annunciators, mission card |
missions.js |
the three sorties and their steps |
gates.js |
the checkpoint rings and their state |
effects.js, glow.js |
contrails, spray, crash and the emissive pass |
sky.js |
gradient sky, sun, cloud deck, the environment map |
runway.js |
the strip geometry and its markings |
input.js, audio.js |
keyboard and mouse, and the synthesised sound |
shots.js |
frozen camera states for the screenshots |
three.js r180 is vendored under game/vendor/ as a minified build; the dossier lists it as
vendored and it is never shown as this entry's source.
main.ts is the entrypoint the grader runs: it copies game/ and screenshots/ to the output
directory and writes dossier.json with buildDossier from vendor/makefun-game.ts.
mkdir -p out && MAKEFUN_OUTPUT_DIR=out node main.ts
The screenshots under screenshots/ are real renders of this game's own code, taken with
node tools/shot.mjs <name> --out screenshots --format jpeg.
MIT. See LICENSE.