- HTML 92%
- JavaScript 7%
- CSS <1%
- Python <1%
Coalition #
A single-file, offline escape game set in the Nelôxia universe (quarterback/kels). You lost the presidency of Valdória on Saturday. By noon a court barred you from leaving. Cross the border at the Huhūi passes into Esmeralda and leave its airspace in a jet bound for Atlanta before the inquiry finds you. You have 72 hours.
Open index.html in a browser. Nothing is fetched at runtime. p5.js 1.9.4 and
the fonts are embedded, and all sound, the theme included, is synthesized with
Web Audio.
The confirmed design is in docs/game-direction.md. This build is the skeleton of that design: every level exists and is thin.
First run #
The page opens on a title screen: a still of the border post at night, the
title and one green Start button. Start lets the theme play. Behind it is the
start screen. The first time, the primary button is Play the guided first
run: 20 steps on a fixed seed with a scripted die and scripted inquiry moves
(src/tutorial.js), from the residence to the border. The coach allows one
action per step and dims the rest. At Susana airfield it hands the run over
live. You can skip the demo and pick a character instead, or restart it from
the header.
How it plays #
- Two problems at once. Each level is a local problem under Here and everything your allies are doing elsewhere under The phone: the jet, the document, the landing rights, who meets you across the line. Allies keep working while you travel. Each one rolls a die to deliver, and a promise is not an arrangement until they do.
- Approaches and the die. Each approach shows its hours and the die it needs. Select it to read what helps it and what happens either way, then commit. The simulation resolves first and the scene animates after.
- Cards are specific help from specific people. They lower the die and some approaches need one. The party card means nothing in Esmeralda.
- Money is never short. The question is whether the person takes it.
- The inquiry acts in the open every four hours: circulating the order, pressing an ally, briefing the papers, asking Esmeralda to hold you.
- Exposure is how sure they are of where you are. At 10 they arrive. The route bar shows where you are and where they think you are.
- Commitments come due. Terms you accepted are listed under People and promises, and earlier choices change how later levels can be solved.
- You win when the jet leaves Esmeraldan airspace.
Copy rule #
Read AGENTS.md before making changes. Game copy follows Humanizer and Digital.gov plain-language guidance. Keep instructions short and preserve the conditions and consequences of each choice.
Game text is English. Verdenese and Nelôxi appear only in names and in a few words people say. Esmeralda is the second Nelosphere state in South America (capital Baca, largest city Susana), owner canon of 2026-10-30.
Layout #
| Path | What |
|---|---|
index.html |
The delivered game, built and self-contained |
src/data.js |
Characters, people, arrangements, cards, levels, enemy actions |
src/sim.js |
Simulation: all game truth, no DOM, no rendering. Node-loadable |
src/tutorial.js |
The guided first run: fixed seed, scripted die and inquiry, 20 steps, what each step allows |
src/render.js |
p5 pixel-art scenes, route HUD, animation queue, title still |
src/ui.js |
HTML panels, inspection, dialogue, title and start screens, coach box |
src/audio.js |
Web Audio sound effects and the theme |
src/style.css, src/shell.html |
Styles, page shell, Open Graph and Twitter card tags |
fonts/ |
The owner's licensed webfonts and LICENSES.md |
og/card.png |
The 1200 by 630 link preview image |
vendor/p5.min.js |
Pinned p5.js 1.9.4 |
tools/build.py |
Inlines everything into index.html |
tools/calibrate.js |
Policy harness: win rate, loss causes and timing |
tools/tutorial-check.js |
Replays the guided run against the sim; run after changing data.js, sim.js or tutorial.js |
docs/ |
Game direction and the Agent Action Records |
Rebuild after editing src/:
python3 tools/build.py
Check the guided run and measure the economy:
node tools/tutorial-check.js
node tools/calibrate.js 500
The record of this build is docs/aar-coalition-skeleton.md. The link
preview image points at the main branch, so it resolves once this work is
merged.