Log inGet started
Package

sunfall.package

Newest version

This package holds more than this page lists. See all of its files in its world.

README.md

game

Sunfall Ridge's run as shared state. Game.state holds the phase (title, cinematic, flight, result), the pilot's instruments (time and light left, altitude, climb rate, airspeed, bank, thermal state, distance and bearing to the meadow), the full-screen fade and the last flight's Result. The Run component writes it every frame; the UI, the sound and anything else read it and listen with Game.on("phase" | "result" | "thermal" | "skip" | "request", fn). Screens ask the run for a flight, a retry, the title or a skip with Game.request(what); the run drains them with takeRequests(). It owns no entities, so any script may require it.