A browser game you can run locally or deploy as a static site.
This project is fully static (index.html, playhouse.js, and src/), so you can deploy it on any static hosting service.
From the project root:
python3 -m http.server 8080Then open: http://localhost:8080
- Push this folder to a Git repository.
- Create a new site in your host of choice.
- Set the publish directory to the repository root.
- Deploy.
No build command is required.
- Canonical game composition entry:
playhouse.jsimportsGamefromsrc/game/game-bootstrap.js. - Runtime loop and per-frame updates live in
src/game/game-runtime.js. - Lifecycle/event wiring lives in
src/game/game-lifecycle.js. - Render and physics setup is modularized via
src/game/create-render-context.jsandsrc/game/create-physics-world.js. - Environment composition is canonical in
src/environment/(zones + specs + builders). src/world/is retained only for legacy artifacts and should not be used for new composition paths.
- Open the deployed URL (or
http://localhost:8080when running locally). - Use your keyboard to control the game.
- Refresh the page to restart quickly.