โ† RP-15 ยท back to the register
Working paper ยท Web game ยท 2026

Piyoki

One egg a day. A creature no one else has. Raise it on your island, then race it.

1 egg a day, for everyone at once 6 rarities, 6 stats, E to S+ 391 tests green 4 of 9 plans finished

The idea

cozy on top, numbers underneath

Piyoki is a cozy 3D creature-raising game for the phone, held in portrait. The whole loop fits in a sentence: you get one egg a day, it hatches into a creature nobody else has, you raise it, and then you race it.

Every player gets their egg at the Egg Altar at the same moment. That shared beat is the point: it is something to check in on, not something to grind. Eggs take anywhere from an hour to three days to hatch depending on rarity, and there are six rarities, from common up through uncommon, rare, mythic and legendary to celestial.

What comes out is built procedurally, and its look follows its stats. A creature has six of them, graded E up to S+, and you should be able to read a Piyoki's strengths off its silhouette before you ever open a menu. It grows through four stages, Child, Piyoki, Adult and Elder, while you feed it and put it to work on a foggy island. You play the Thalyn, who builds and clears back the vines; the garden underneath is a seeded 32ร—32 grid.

Then you race. A race lasts about sixty seconds and is decided by stats. You watch; you don't steer. The first contest is the 50cc Field Race, and after that there are relays and a Daily Challenge. Behind it all is a small story: four tribes, the Sokari, Umino, Kazurei and Rokun; Miora, the guardian deity; and Tama, the last champion.

Cozy on the surface. Deep numbers for anyone who wants to collect.

The look is toon-shaded 3D with a warm ink outline, done with a custom toon shader and an inverted-hull outline pass. The writing voice matters just as much to me. The game says "Momo reached Speed D!", not "Congratulations!!!", and "Tsubiri trips on the pothole!", not "Runner 7 failed an obstacle check." The creatures have names, so the game uses them.

Plate I ยท a creature and its race day

the card vs. the program
A composed mock in the game's own palette, not a capture: the creature card on the left, the race-day program on the right. The look of a Piyoki follows its six stats, so Momo's long legs are its Speed and the small wings are its Fly. The race itself is not steered. It is computed from stats and a seed, which is why the program can print the seed it ran on.

The rules are a pure simulation

no clock ยท no dice ยท no DOM ยท no three.js

The decision I care most about here is invisible to players. All of the game's rules live in src/sim, and that folder never touches the clock, randomness, the DOM or three.js. A test enforces it, so it stays true when I'm in a hurry. Time comes in as an argument. Randomness comes from seeded streams.

On top of that sits an event engine with what I call the "jump equals step" guarantee. An idle game has to answer one awkward question all the time: you closed the app yesterday, so what happened while you were gone? The lazy answer is an estimate. Mine is that catching up after time away gives exactly the same result as running the world tick by tick. Not close. The same.

seed ยท 0x3c7ethe island step(1 min) ร— 1,440tick by tick = jump(24 h)tomorrow, in one call

That one property pays for a lot. Races are fair and replayable from their seeds. And because the whole game runs without a screen, a pacing bot plays a full week headless to tune the economy. Today it meets the first-week pacing targets on 90 of 100 seeded islands. A separate test sweeps 300 islands to guard the garden layout.

The creatures are generated from their traits, and they have to stay cheap enough for a phone. Measured over 1,000 random creatures, the close-up model has a median of 3.1k triangles and a maximum of 4.9k, at two draw calls each.

Step 01
Seed the world

An island, an egg and a race each start from a seed. Every random choice is drawn from a stream that seed defines.

Step 02
Advance by events

Hatches, feedings and grade-ups are events on a timeline. The engine advances from one to the next, never off the wall clock.

Step 03
Jump equals step

A day away and 1,440 single minutes land on the same state. Tests hold it to that, so catch-up can't drift.

Step 04
Render after

Only then does three.js draw the result: toon shading, the ink outline and the fog. The picture never feeds back into the rules.

TypeScriptVitethree.jscustom toon ShaderMaterial VitestPlaywrightCloudflare Pages Preact UI ยท plannedPWA ยท plannedCapacitor for iOS ยท planned

Where it stands

9 plans ยท 4 finished

I started on October 3, 2026, from a 1,090-line design spec, and broke the build into nine plans. Plans 1 to 3 produced a complete headless simulation: eggs, the garden economy, races, relays, the Daily Challenge, the pacing bot and a frozen v1 save format. Plan 4, the 3D models and a creature gallery to browse them in, finished on October 16. The suite stands at 391 Vitest tests plus 4 Playwright checks.

There is an early build you can open in a browser now, and it will fill in as each plan lands. Next comes the playable garden world, then the first-time flow, story and audio, and after that an installable web app and iOS. I haven't set a date, and I won't write one here until there's a build to back it.

Status

In progress. The simulation is complete and tested headless, and the creature models are done. The playable garden world is the next plan.

Shape

6 rarities ยท 6 stats ยท 4 stages
32ร—32 seeded garden
391 Vitest + 4 Playwright
1,090-line design spec

Platform

Phone, portrait
Web first, as an installable app
iOS planned via Capacitor

Filed

RP-15
Started Oct 3, 2026
Drafted 2026
Russ Fyfe

โ† the register RippedPages ยท filed & kept by RF