Enable concave stars and poly-decomp setup

This commit is contained in:
Daddy32
2025-12-13 20:09:33 +01:00
parent d825436f20
commit 854f19503a
4 changed files with 44 additions and 16 deletions

View File

@@ -24,6 +24,7 @@ Physilinks is a browser-based physics linking game built with Matter.js. Match a
- `index.html`: Shell layout and HUD overlays; loads Matter.js plus game scripts.
- `styles.css`: Styling for canvas, HUD, overlays, and score popups.
- `scenes/`: Scene presets split per file (`scene-*.js`) plus `index.js` that registers them to `window.PhysilinksScenes` (e.g., zero-G grid, balanced, low-G, fast drop, lava drift).
- `decomp-setup.js`: Registers `poly-decomp` with Matter to allow concave shapes (stars, blobs) built via `Bodies.fromVertices`.
- `ui.js`: DOM access, HUD updates, overlays, popups, and control/selector wiring.
- `main.js`: Physics setup, state machine, chain interaction, spawning, scene application, and pause/restart logic.