The gap
Platformer levels break silently: a changed jump height can make a gem unreachable, and replaying every level by hand after each tweak is slow.
Game templates
The complete TypeScript and three.js source of Halfglow, a tight 2.5D platformer where a lantern spirit swaps day for night. A search bot proves every level, with every gem.
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
Platformer levels break silently: a changed jump height can make a gem unreachable, and replaying every level by hand after each tweak is slow.
What it is
A finished, tested platformer whose every level a search bot proves, with its levels and movement rules in one config file.
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, movement rules (coyote time, buffering, jump heights), levels drawn as text, daily pieces, colours and sound.
npm run solve finds a run through every level with every gem and records it; npm test replays the runs through the real simulation and finishes 30 daily levels.
20 levels and a daily level, the day/night swap, gems, par times, three stars, lantern checkpoints, instant respawn, a replay on the title screen.
129 unit tests and Playwright browser runs, a size budget, an upload zip for itch.io or any static host, and a guide to new levels, tiles and moves.
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.