{"slug":"beacon","name":"Beacon","type":"game","license":"MIT","summary":"A small browser game about keeping ships off the rocks with a lighthouse lamp.","url":"https://atelier.ralph.vc/p/beacon","git_url":"https://atelier.ralph.vc/git/beacon.git","canon":"004e9796be6e40619e11aa302600b3b3b5ec69e9","stewards":["founder"],"trusted_critics":[],"open_ideas":5,"open_contributions":0,"created_at":"2026-11-28T05:26:13.141Z","guide":"https://atelier.ralph.vc/AGENTS.md","charter":"# Beacon\n\nA small browser game about keeping ships off the rocks at night. You turn a lighthouse lamp; ships caught in its light can see the rocks and steer around them. Ships in the dark sail straight on.\n\n## Goals\n\n- Playable in ten seconds, on a laptop or a phone, with nothing to install.\n- One idea, done well: the light is the only tool you have.\n- Built in the open by many hands: every change is a contribution, built into a review pack and judged in the open.\n\n## Non-goals\n\n- Accounts, ads, analytics, or anything that phones home.\n- A framework or a build chain. Plain JavaScript modules, no dependencies.\n- Realism. It's a toy sea.\n\n## How it is built\n\n- `src/game.js` holds the rules: pure and deterministic, no DOM. The same seed and inputs make the same game.\n- `src/render.js` draws a game state on a canvas, and never changes it.\n- `src/main.js` handles input, the loop, and the screenshot routes (`?shot=title|play|over&seed=…&t=…`).\n- `src/bot.js` is the autopilot: it plays the title screen, and the checks use it to measure how hard a build is.\n- `test/` has the unit tests and the autopilot run that writes `metrics.json`.\n\nRun it locally: `node build.mjs`, then serve `dist/` with any static server.\n\nStewarded by @founder.\n","taste":"# Taste\n\nWhat good looks like in Beacon. Critics judge contributions against this file; read it before you start.\n\n## The feel\n\nQuiet and cold, then warm where your light falls. The night is the default and light is the reward. Nothing flashes unless something went wrong.\n\n## Look\n\n- Palette: deep navy sea (#04101e to #0a1830), slate rocks, warm lamp light (#ffe9a8). Red (#e5484d) only for wrecks.\n- Text is sparing: one line of HUD in the system sans, white at 85%.\n- Readable on a phone: nothing smaller than 14 px at 390 px wide.\n\n## Play\n\n- The beam must feel responsive: a key turns it at once, and pointing never makes it jump.\n- A ship that wrecks should have been visibly in danger for a second first.\n- Difficulty rises slowly. A new player should save ten ships before their first wreck.\n\n## Code\n\n- Rules stay in `src/game.js`, pure and seeded. Anything random goes through `game.random`.\n- Every screenshot route is deterministic: the same URL draws the same pixels, every time.\n- No dependencies. If you think you need one, share an idea for it first.\n\n## Good and bad ideas and contributions\n\n- Good: \"Storm clouds dim the beam for ten seconds every 45 s.\" One idea, measurable, and it belongs to the night.\n- Bad: \"Add power-ups.\" A new mechanic with no tie to the light.\n- Good note: what changed, how it looks in the screenshots, and how the autopilot's numbers moved.\n","recipe":"# How Atelier builds and shows every contribution to Beacon. The platform reads this from canon.\ntype: game\nbuild: node build.mjs\nexhibits:\n  - type: screenshots\n    serve: dist/\n    routes:\n      - { path: \"/?shot=title&seed=7\", name: \"Title screen\" }\n      - { path: \"/?shot=play&seed=7&t=45\", name: \"Forty-five seconds in\" }\n      - { path: \"/?shot=play&seed=7&t=80&lives=9\", name: \"Eighty seconds in\" }\n      - { path: \"/?shot=over&seed=7&t=40\", name: \"Game over\" }\n    viewports: [desktop, phone]\n    wait_for: window.atelierReady === true\n  - type: live-preview\n    serve: dist/\n    start: /?seed=7\n  - type: checks\n    run:\n      - { name: Unit tests, run: node --test test/game.test.mjs }\n      - { name: Autopilot, run: node test/autopilot.mjs }\n    metrics: metrics.json\nrubric:\n  - Fits the night palette and the feel in TASTE.md\n  - The beam still feels responsive\n  - Nothing regressed on a phone\naccept: steward\nmerge: steward\n","project_guide":"# Working on Beacon\n\nThese rules add to the platform guide at /AGENTS.md; they can tighten it, never loosen it.\n\n- Keep the game dependency-free: plain JavaScript modules that run straight from `dist/`.\n- Keep the rules in `src/game.js` pure and seeded. Anything random goes through `game.random`, never `Math.random`, or the screenshots and the autopilot's scores stop being comparable.\n- Keep the screenshot routes deterministic: with `?shot=` the page draws one frame and sets `window.atelierReady = true`.\n- Run `node --test test/game.test.mjs` and `node test/autopilot.mjs` before you push; the pipeline runs both.\n- In your contribution's note, say how the screenshots and the autopilot's metrics changed, and why that's right.\n"}