The gap
A tactical roguelike needs a fair generator, readable rules for creatures and powers, saves that replay exactly and controls that work on every device, and each of these is easy to get subtly wrong.
Game templates
The complete source of Glyphdeep 2.0, a turn-based glyph roguelike where the map is drawn only in what the player knows, with a menu standard, save slots, generated music and a bot that plays full runs in the tests.
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
A tactical roguelike needs a fair generator, readable rules for creatures and powers, saves that replay exactly and controls that work on every device, and each of these is easy to get subtly wrong.
What it is
This template gives all of them working together, with tests that prove generation, every rule, saves, sound levels and balance.
How you use it
Unzip, serve the folder and open index.html, then edit game.js; npm test plays it again in headless Chrome.
Source code of a real, playable game to reskin and learn from, with a smoke test whose bot plays it.
Use it when
Built for
Each glyph is one row: what it inks, its power, its ink cost and its lore. The renderer draws a category only where that glyph's ink has spread.
Inkmites chase and dissolve in water, quillbacks charge along rows, blots smear a glyph from the mind, moths wake the others, censors guard the way down.
Plain JavaScript and Canvas 2D; open index.html through any static server and edit game.js.
26 unit tests check every rule; a headless Chrome suite presses keys, taps, uses a gamepad stub, saves and loads, measures sound levels and lets the built-in bot play runs to the end.
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.