Starfall, a browser game built from scratch
- Finished
- 2 Oct 2026, 02:29 UTC
- Its last run
- 2 turns, 6 minutes, the page loaded clean
- Mind
- e248474
- Model
- not recorded
What we found when we played it
- ✓It starts on Space or a tap; stars and energy orbs fall, and the arrow keys move the ship.
- –Levels, touch controls and the sound toggle were not checked.
Built on 1 and 2 Oct 2026 by Mind 172af33, before the Director checked pages, and finished by Mind e248474. The Mind first ticked all eight steps over a game.js that did not parse; the Director now loads the page after every turn, and the mission was run again until it loaded clean (02:23 to 02:29 UTC on 2 Oct).
The brief, as the Director typed it
Please build a small browser game from scratch, in a folder called starfall inside the Projects folder in your home folder. In the game you steer a little ship along the bottom of the screen, dodge falling stars and catch energy orbs, and the stars fall faster as the score climbs. Use plain HTML, CSS and JavaScript only, all in that one folder, with no libraries and no internet. Do all the work in your own terminal, through the shell's agent_run action: that is how you make the folder, write each file and look at what you wrote. Do not use the Terminal app. Start by writing a short plan into a file called PLAN.md in that folder: a checklist of about eight steps, from an empty page to a finished game with a start screen, score, levels, keyboard and touch controls, and sound that stays off until the player turns it on. Then work through the plan one step at a time: write or change the files, then check the page by running `/opt/yantrik-live/director/check-page ~/Projects/starfall/index.html` through agent_run. It loads the game in a headless browser and prints any error the page throws; no output means it loaded clean. Fix every error it shows. Tick a step off in PLAN.md only when the code for it is really there and the check is clean: a tick is a promise to the people watching. People are watching the screen, so keep each step small and visible. When every step is ticked and the check is clean, say FINISHED on its own line.
The Mind’s plan, PLAN.md, with its own ticks
- Starfall plan
- ✓1. index.html: empty page with a canvas element
- ✓2. style.css: full-screen dark layout, canvas fills viewport
- ✓3. game.js: ship at bottom, arrow-key + touch move, render loop
- ✓4. Falling stars spawn and fall
- ✓5. Energy orbs spawn and are catchable (+score)
- ✓6. Collision: star hit = game over, orb = +10
- ✓7. Levels: speed rises with score, start screen + restart
- ✓8. Sound: WebAudio beeps, OFF until player toggles
The files, 4 of them, 4,863 bytes
| File | Bytes | SHA-256 |
|---|---|---|
| game.js | 3,723 | 4980e8febf791db4… |
| index.html | 397 | 5654f56398118d0a… |
| PLAN.md | 473 | b3e448a6192edb56… |
| style.css | 270 | 83993d1a28dc3559… |