Hatch Scratcher
The first game built for the CryptoZoo arcade.
live Live at hatch.spencermcw.com; source on GitHub. The CryptoZoo arcade it was built for is gone checked 2026-10-20 [1]
A scratch-card style wager game: pick animals, set a wager per square, begin the round and reveal the board, with balances and rollovers settled in $ZOO.
what it does
-
The server generates each board from seedrandom, seeded with the round's UUID plus a server secret, so any round can be regenerated from its id. [3]
-
A square pays 0.95 divided by its hit probability, times the wager: an exact animal is 1 in 16; the five rarity tiers are 25/25/25/12.5/12.5%. [3]
-
Payout math runs on decimal.js rather than floats. [3]
-
Wallet sessions persist in MongoDB through express-session and connect-mongo, and CORS is pinned to the game's own origin. [5]
-
A simulation script plays rounds through the same game module to check payouts. [6]
-
The client is seven PixiJS scenes (splash, connect, loading, wager, scratcher, results, rollover) driven by the same scene manager as the arcade game template. [7]
Languages, as GitHub reports them
by bytes [10]- JavaScript 69%
- PLSQL 30.1% not SQL: GitHub classifies TexturePacker's .tps sprite-sheet files as PL/SQL
- HTML 0.4%
- CSS 0.4%
Every marked line above points at one of these: repositories and their docs, registries, live sites and screenshots. Nothing is inferred past what they show.
- [1] hatch.spencermcw.com (answers 200) hatch.spencermcw.com 2026-10-20
- [2] spencermcw/hatch-scratcher on GitHub github.com 2026-10-13
- [3] server/hatchscratcher/game.js github.com 2026-10-13
- [4] server/hatchscratcher/animals.js github.com 2026-10-13
- [5] server/index.js github.com 2026-10-13
- [6] server/hatchscratcher/testing/sim.js github.com 2026-10-13
- [7] game/scripts/scenes github.com 2026-10-13
- [8] game/package.json github.com 2026-10-13
- [9] server/package.json github.com 2026-10-13
- [10] GitHub languages API api.github.com 2026-10-13
- [11] spencermcw/cz-arcade-game-template github.com 2026-10-13
- [12] BlockOpsDev/CryptoZoo, pull requests by spencermcw github.com 2026-10-13