I'll transform Mallow from a static photo into a fully animated cartoon cat with a mood/behavior simulation system. Let me plan the architecture:
src/cat/types.ts — mood/behavior types + mood metadata (bubble text, messages)
src/cat/CatSVG.tsx — hand-built animated SVG cartoon cat (ears, eyes, mouth, tail, paws, whiskers all react to mood)
src/cat/cat.css — all the animation keyframes (tail wag/whip/droop, ear flatten, blinking, pouncing, etc.)
src/App.tsx — care simulation (love, hunger, energy, overstimulation), game loop, effects
src/index.css — updated layout with stats HUD
First, the types file:
Now the animated cartoon cat SVG — every facial feature, ear, tail, and paw is a separate animated group:
Quick fix — the mood is called "sleepy", not "sleeping":
Both fixed. Now the animation stylesheet — the heart of the character's personality:
Now the main app with the care simulation (love, hunger, energy, overstimulation) and all interactions:
Now the layout stylesheet rewrite:
Now update the page title and remove the obsolete photo asset:
Build succeeded, but there's a duplicate "sleepy" case in the Eye component (I renamed "sleeping" → "sleepy", but a half-lidded "sleepy" case already existed — tired covers droopy lids now). Let me remove the redundant case:
Build is clean. Let me fix one small logic issue — startling the cat awake during a nap should cancel the auto-wake timer:
The build is clean. Mallow has been completely transformed from a photo into an animated cartoon cat with a living emotional state machine.
What changed
src/cat/CatSVG.tsx — A fully hand-drawn SVG cartoon cat where every body part is an independent animated group: tail, ears, head, eyes, mouth, whiskers, paws, and blush.
src/cat/cat.css — ~40 keyframe animations powering the behavior: tail sway/wag/whip/droop, ear twitches and flattening, eye blinks and squeezes, head bobs/tilts/nods, begging paws, pouncing, munching, jumping, plus floating effects (hearts, Zzz, steam puffs, tears, sparkles, fish, "!" pops).
src/App.tsx — A care simulation with four needs (Love, Fullness, Energy, Overstimulation) that decay over time, so Mallow's behavior is entirely driven by how you treat her:
- Pet — she leans in, purrs, squeezes her eyes shut, floats hearts. Pet too rapidly and she gets overstimulated: ears flatten, eyes turn angry, tail whips, steam puffs from her head.
- Play — her head tracks the red dot, pupils dilate with a star sparkle, tail wags frantically, and she pounces with dust sparkles. Overplaying drains her energy.
- Treat — a fish flies in, she munches with crumbs and "nom nom!", fullness refills.
- Talk — random meows in a thought bubble.
- Nap — the room dims, she curls up breathing slowly with Zzz, and wakes refreshed.
Neglect has consequences: ignore her and she gets hungry (begging paw, pleading eyes, meow bubbles), then lonely (droopy ears, tears, blue lighting) — and she'll meow for your attention. The whole room gets mood-tinted lighting, a mood chip, stat bars with low warnings, and a narration line for each state.
9 moods total: curious, happy, playful, sleepy, hungry, sad, annoyed, tired (nodding off if you never let her nap), and surprised (startle her awake mid-nap).
Files built: src/cat/types.ts, src/cat/CatSVG.tsx, src/cat/cat.css, src/App.tsx, src/index.css, index.html