Inspiration
Millions of us killed a Tamagotchi in the 90s by forgetting to feed it. Kiroween asked us to resurrect dead tech, so we brought the pet back, as a ghost that holds a grudge.
What it does
- A glowing bone-white egg with a 32x16 dot-matrix LCD and three physical buttons (A next, B select, C back), exactly like the original.
- Hatch a ghost with a random spooky name, then keep four meters up: Hunger (feed it fears: Spiders, Dark, Mondays), Joy (a left/right guessing mini game), Candle (relight it) and Haunt (how restless it is).
- Real time: meters drain while the tab is closed. The ghost grows Wisp, Specter, Poltergeist, Banshee over a week.
- Neglect it and it haunts you: the room dims, the LCD inverts and glitch text crawls over your screen until you calm it with a 3-button pattern.
- Leave it alone for 12 hours with an empty meter and it greets you with YOU LEFT ME. AGAIN.
- Haunted LCD costume: ghosting pixel trails, flicker, scanlines, a scratched egg with a GHOSTAGOTCHI 1997 sticker, square-wave beeps.
- Share my ghost: a link that opens a card of your ghost for friends.
Play it free, no sign-up, on phone or desktop: https://ghostagotchi.vercel.app
How we built it (how Kiro was used)
Spec-driven from start to finish. Everything is in the repo's .kiro folder:
- Steering:
.kiro/steering/product.mdset the product rules every change had to follow (vanilla JS, no build step, 32x16 canvas, solid colors, phone and desktop). - Spec 1, the game:
.kiro/specs/ghostagotchiholds requirements, design and a 10-step task list. Kiro implemented it task by task and ticked each one off: page shell, LCD renderer, sprites, state and time, menu, mini game, haunt event, sound, share link, README. - Kiro checked its own work: a script validated every sprite's size (it caught two eggs drawn 16px wide instead of 14) and a mocked-browser flow test ran hatch, menu, feed, play, haunt, calm and neglect with no errors.
- Spec 2, polish: after a play test we wrote
.kiro/specs/polishwith WHEN/THEN requirements for the first 30 seconds a judge sees. Kiro wrote a design mapping each requirement to exact file changes, then built it: a control hint row, a bigger egg on desktop, glitch text kept on screen, touch fixes, a LINK COPIED toast with a fallback, meta tags and a pixel ghost favicon. Two more layout bugs found in testing (a thin egg on desktop, a squashed egg on short screens) went back to Kiro as tasks 8 and 9 of the same spec.
Kiro wrote the game code. One CSS line was added by hand after a live test.
Challenges we ran into
Making a 32x16 screen readable: a 3x5 pixel font and sprites that work 14 pixels wide. Making time pass while the tab is closed, computed from timestamps. Keeping the egg's shape on every screen size.
Accomplishments that we're proud of
It feels like holding the real toy, it runs on a phone with no install, and it has zero dependencies.
What we learned
Writing the requirements first made Kiro's output match the vision on the first pass, and a second small spec was the fastest way to polish.
What's next for Ghostagotchi
More fears to feed, seasonal costumes for the egg, and ghosts that visit each other through share links.
Built With
- canvas
- css3
- html5
- javascript
- kiro
- vercel
- webaudio