Skip to content
PN Scripts

Game templates

Siftwend Game Template

The complete TypeScript source of Siftwend, a falling-sand puzzle in a jar that turns upside down. A recorded solution in the tests finishes every level within its three-star budget.

  • TypeScript
  • Canvas 2D
  • 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.

Siftwend in play: burning oil spreading across a pond towards a crate in a glass jar, with the oil and fire palette beside it

What it solves

The gap

A falling-sand simulation is easy to make slow or unpredictable, and checking that every level can still be won after a rule change is slow.

What it is

A finished, tested falling-sand puzzle whose simulation replays exactly and whose levels are proven by recorded solutions.

How you use it

Unzip, run npm ci and npm run dev, then edit the config; npm test proves every level 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 falling-sand or physics puzzle on itch.io, web portals or your site.
  • Learning cellular simulation, deterministic replay and level proofs in TypeScript.
  • Building a branded physics mini-game for a client.

Built for

  • Web and indie game developers who know some TypeScript.
  • Developers who want a fast, tested cellular simulation to build on.

What you get

A level format

Goals (bloom, clear, fill a box, keep), ink budgets, paint zones and flips, with builder helpers for seedlings, crates and cottages.

Levels with a proof

On every npm test a recorded solution finishes every level within its three-star budget, and doing nothing must fail.

A finished game

Ten materials, a gravity flip, 20 goal jars, a daily jar and a free sandbox that saves itself.

Tests and a guide

56 unit tests and Playwright browser runs, a frame-time script, a size budget, an upload zip for itch.io or any static host, and a guide to adding levels and materials.

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
  • Canvas 2D
  • Vite 8
  • Web Audio
  • Vitest and Playwright

The Siftwend 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.