Skip to content
PN Scripts

Game templates

Tintail Game Template

The complete TypeScript and three.js source of Tintail, an arcade snake that wears the colour it eats and slips through matching crystal gates. A search bot proves 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.

Tintail in play: a rose-coloured snake on a floating island board with crystal gates in three colours

What it solves

The gap

Snake stages with gates and colour rules are easy to make impossible by accident, and checking every star target by playing is slow.

What it is

A finished, tested arcade snake whose stages are text maps and whose star targets a search bot proves.

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 arcade snake or grid game on itch.io, web portals or your site.
  • Learning deterministic tick-based games and search-based stage testing in TypeScript.
  • Building a branded arcade 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, save key, rules, three colours, medals, palette, sound and the 15 stage maps as text.

Stages with a proof

On every npm test a search bot plays every stage and must earn three stars, so each star target is fair.

A finished game

Colour gates and dye pools, double points for matching fruit, 15 stages, an endless mode, three medals and a daily run.

Tests and a guide

102 unit tests and Playwright browser runs, a size budget, an upload zip for itch.io or any static host, and a guide to adding stages and new tiles.

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