Add reference scene template

This commit is contained in:
Daddy32
2025-12-15 17:29:39 +01:00
parent 9de08cbd60
commit 0bc834416f
3 changed files with 137 additions and 0 deletions

View File

@@ -5,6 +5,7 @@
- `styles.css` holds layout, HUD, overlays, and popup styling.
- `src/main.js` runs the physics loop, spawning, scoring, and scene application; `src/ui.js` wires DOM/HUD controls and overlays.
- `src/scenes/*.js` defines scene presets (`id`, `name`, `config`, `createBodies(width, height)`); `src/scenes/index.js` registers them to `window.PhysilinksScenes`.
- `src/scenes/scene-template.js` is a reference-only template documenting all supported scene config options; it is not loaded by default.
- `src/decomp-setup.js` configures `poly-decomp` for concave shapes; `src/storage.js` reads/writes per-scene highscores/records in `localStorage`.
## Build, Test, and Development Commands