Skip to content
PN Scripts

Game templates

Wrenbough Game Template

The complete TypeScript and three.js source of Wrenbough, a calm game for learning to read music with spaced repetition. Every note in both clefs is checked against standard notation in the tests.

  • TypeScript
  • three.js
  • Vite 8
  • Web Audio
  • Vitest and Playwright
  • Coming soon

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.

Wrenbough in play: a note on the first line of the treble clef named E on an on-screen piano keyboard, with a tree full of songbirds behind

What it solves

The gap

Music notation is easy to draw wrong, and a learning game needs a fair repetition schedule that is hard to test by playing.

What it is

A finished, tested note-reading game whose notation and spaced repetition are checked by unit tests and bots.

How you use it

Unzip, run npm ci and npm run dev, then edit src/game.config.ts; npm test checks the notation and the stages again in seconds.

Source code of a real, playable learning game to reskin and learn from, with its proofs built into the tests.

Who it is for

Use it when

  • Publishing your own music-learning game on itch.io, web portals or your site.
  • Building a note-reading drill for a music school, teacher or app.
  • Learning spaced repetition and tested notation rendering in TypeScript.

Built for

  • Web and indie game developers who know some TypeScript.
  • Developers of music-education apps and sites.

What you get

One config file

Stages with their notes, clef, key signature and lesson line, stars, repetition intervals, colours and sound.

Notation with a proof

On every npm test every note in both clefs and every key signature is compared with a table of standard notation.

A finished game

20 stages from the treble clef to key signatures, practice, a daily set and a tree of songbirds that shows what the player knows.

Tests and a guide

74 unit tests and Playwright browser runs, a size budget, an upload zip for itch.io or any static host, and a guide to the curriculum and other note names.

Specs

Availability
Coming soon
Vendor
PN Scripts
Type
Template
Platforms
JavaScript
Pricing
One-time purchase Price to be announced.
License
PN Scripts Template Licence 1.0
Deployment
Download (ZIP of source code)
Maturity
v1.0.0

Compatibility

Platform or runtime Supported versions Tested up to
Node.js 22.12 or newer Not stated

Stack

  • TypeScript
  • three.js
  • Vite 8
  • Web Audio
  • Vitest and Playwright

The Wrenbough template is coming soon

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.

Questions

Make and sell any number of your own games from it, and build games for clients. You may not resell or share the source code itself (PN Scripts Template Licence 1.0).

Node.js 22.12 or newer and some TypeScript. Google Chrome runs the browser tests.

No ad or portal SDK, English letter names only, and quarter notes only (no rhythm reading). It is tested in desktop Chrome and Chrome's Pixel 7 emulation, not yet on iOS Safari, Firefox or a real phone. No music teacher has reviewed the lessons.

The code was written with AI assistance and checked by PN Scripts with automated tests. All visuals and sounds are generated by code; there are no AI-generated image or audio files.

It is not on sale yet. When it is, this page will link to the store; PN Scripts does not take payment on this site.