Space Browser, the game.
- See ./GAME_DESIGN.md for the high level design choices.
../space-browser-exploration and ../browser-game-exploration are the prototypes referenced in the design doc.
- Do not confuse the prototypes scope and features with this final implementation design. They were explorations with different objectives.
- Start and stop the dev servers only with
./dev-start.sh and ./dev-stop.sh. Never run go run, vite or npm run dev directly.
- Use
agent-browser to experience the game from a players point of view.
- Drive it through
./tools/agent.sh (commands in its header): it converts every
target to screen pixels inside the page, so nothing has to guess the camera.
- The dev build draws the pointer as a ring of cells and prints
cell / world / px
plus the thing under it in the top left, because screenshots never contain the
browser cursor. window.__game (cam, state, toScreen, toWorld,
targets()) is the same information for agent-browser eval.
GET :8090/debug/state returns the pushed state with no client attached
(you/held are 0): use it to assert what the server did.
- Do not add new designs, systems or mechanics without the user asking explicitly.