The gap
Hand-made puzzle levels take long to design and are easy to get wrong: one unsolvable level and players leave.
Game templates
The complete TypeScript and three.js source of Songbridge, a browser puzzle game where the melody you play builds the path your creatures walk on. Write songs in one config file and publish your own game.
Sold on Gumroad. PN Scripts does not take payment for it here.
The gap
Hand-made puzzle levels take long to design and are easy to get wrong: one unsolvable level and players leave.
What it is
A finished puzzle game whose levels are generated from short song recipes and proven solvable by a solver bot on every test run.
How you use it
Unzip, run npm install and npm run dev, add a song to src/game.config.ts and run npm test to check it can be played for three stars.
Source code of a real, playable game to reskin and learn from, not an engine or a drag-and-drop builder.
Use it when
Built for
Each song is a short recipe: tempo, key, length, gap sizes and the chance of thorns, low rocks and golden notes. The generator writes the melody first and builds the level around it.
npm test lets a solver bot with human-like reaction play every song for three stars and checks 60 days of daily songs. Test players also prove that mashing buttons loses.
Title, logo, tagline, world names and colour themes, note colours and musical scale, the note sound of each world and the creature colours.
Every note has its own shape, number, height and colour-blind-safe colour; a visual beat, a note guide and reduced motion make it playable with the sound off.
One command builds CrazyGames (one-file build for their uploader), Poki and itch.io or own-site versions and checks download size.
1 of 4
| Platform or runtime | Supported versions | Tested up to |
|---|---|---|
| Node.js | 22.12 or newer | Not stated |
Buy the source code on Gumroad. Gumroad handles the payment and the download.
Sold on Gumroad. PN Scripts does not take payment for it here.