Skip to content
PN Scripts

Game templates

Haarwick Game Template

The complete TypeScript and three.js source of Haarwick, a calm typing game: type the words carried by the sea fog and a lighthouse beam burns it away. Typing bots prove every stage.

  • 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.

Haarwick in play: words on wisps of fog drifting towards a lighthouse at night, one word locked by the beam

What it solves

The gap

A typing game has to feel fair at every pace: too fast and players drown, too slow and it bores; tuning stages by typing them yourself is slow and depends on your own speed.

What it is

A finished, tested typing game whose stages typing bots prove at the intended, slow and phone paces, with its words and curve 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.

Who it is for

Use it when

  • Publishing your own typing game, in English or another language, on itch.io, web portals or your site.
  • Making a typing trainer for a school subject or a spelling list.
  • Building a branded typing mini-game for a client.

Built for

  • Web and indie game developers who know some TypeScript.
  • Studios and freelancers who make branded browser games.

What you get

One config file

Title, logo, colours, scoring, star thresholds, stage names and the pace curve, the daily stage, practice and the phone pace; words in one file per length.

Stages with a proof

On every npm test a bot at the intended speed clears each stage with three stars, a slow bot fails the late stages and a phone-pace bot clears everything; 60 daily stages are checked too.

A finished game

15 stages from 12 to 46 words per minute, live WPM and accuracy, stars, a daily stage, calm practice, phones through the device keyboard.

Tests and a guide

43 unit tests and Playwright browser runs, a size budget, an upload zip for itch.io or any static host, and a guide to changing the words or language and adding a stage.

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 Haarwick 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, and English only. It is tested in desktop Chrome and Chrome's Pixel 7 emulation, not yet on iOS Safari, Firefox or a real phone.

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.