The gap
Water puzzles need a water model that is cheap enough for phones and still behaves, and levels that are proven playable. Building that, plus the game around it, takes weeks before the first island is fun.
Game templates
The complete TypeScript and three.js source of Rainherd, a weather puzzle game: herd one rain cloud over a tiny island, water every field and keep the villages dry. A real water model, and every island proven playable.
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.
The gap
Water puzzles need a water model that is cheap enough for phones and still behaves, and levels that are proven playable. Building that, plus the game around it, takes weeks before the first island is fun.
What it is
A finished, tested weather puzzle with a mass-conserving run-off model, an island generator proven by an autopilot, and its look, water rules and difficulty in one config file.
How you use it
Unzip, run npm ci and npm run dev, then edit src/game.config.ts; npm test rebuilds and re-proves every island.
Source code of a real, playable game to reskin and learn from, with the water model and level proof built in.
Use it when
Built for
Title, logo, save key, colours, the water and weather rules, island names and the difficulty curve: fields, villages, roughness, wind and how much each field must soak.
Rain lands under the cloud, runs to lower neighbours by water surface, drains to the sea, soaks into fields and dries in the sun. A test checks that every drop is accounted for.
Villages are placed where run-off gathers. An autopilot must water every field without a flood, the rain budget is set from its thrift, and parking the cloud over the middle must fail.
33 unit tests and Playwright browser runs, a size budget, an upload zip for itch.io or any static host, and a guide with ideas such as snow clouds, dams and more clouds.
1 of 3
| Platform or runtime | Supported versions | Tested up to |
|---|---|---|
| Node.js | 22.12 or newer | Not stated |
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.