The gap
Brick-breaker levels with curving balls are hard to tune, and checking that every star time is fair by playing is slow.
Game templates
The complete TypeScript and three.js source of Haloclast, a brick-breaker in a ring with a curved paddle round the rim and gravity cores that bend the ball. An autopilot proves every level.
Coming soon
Not published on its store yet, so there is no buy or download link. PN Scripts does not take payment for it here.
The gap
Brick-breaker levels with curving balls are hard to tune, and checking that every star time is fair by playing is slow.
What it is
A finished, tested ring brick-breaker whose levels are text maps and whose star times an autopilot proves.
How you use it
Unzip, run npm ci and npm run dev, then edit src/game.config.ts; npm test checks the game again in seconds.
Source code of a real, playable game to reskin and learn from, with its proofs built into the tests.
Use it when
Built for
Title, logo, save key, rules, power-ups, palette, sound and the 20 level maps as text.
On every npm test an autopilot plays every level with a player's input and must earn three stars, so each star time is fair.
A ring arena with gravity cores, 20 levels, a daily level, five power-ups, fuse and steel bricks and combo scoring.
114 unit tests and Playwright browser runs, a size budget, an upload zip for itch.io or any static host, and a guide to adding levels, bricks and power-ups.
1 of 3
| Platform or runtime | Supported versions | Tested up to |
|---|---|---|
| Node.js | 22.12 or newer | Not stated |
The template is finished and tested. It is not on sale yet; this page will say where to get it when it is.
Coming soon
Not published on its store yet, so there is no buy or download link. PN Scripts does not take payment for it here.