← Back
← Back

PlantCat — A Virtual Creature in p5.js

p5.jsVirtual CreatureCreative Coding

Move your cursor near a cat, or back and forth over it to pet it.

Concept

PlantCat is a black cat with plants growing on its head and tail. The plants stay fresh when it gets attention and wilt when it’s left alone. I wanted the interaction to be about care and connection, not control.

Interaction

Approach It Like a Real Animal

Move toward it too fast and it steps back. Approach slowly and it waits for you.

Pet It to Help It Grow

Stroke the cat with the mouse and it purrs, hearts float up, and the sprout on its head grows.

Two Cats, Two Personalities

Moss and Fern share the same code but react differently. Fern is cautious. Moss is bold.

Process

I made PlantCat with vibe coding. I explained what I wanted, and the AI wrote the code. I wanted the cat to move like a real cat, so it could feel alive. The tail was the hardest part. It looked stiff many times, so I kept telling the AI what felt wrong and we changed it again and again. First it was a straight line, then a curve, and finally a tail with many parts that moves like a whip. From this process, I learned that the shape and the movement of the tail have to work together.

Moss walking with a straight tail01 Straight
Moss walking with a curved tail02 Curved
Moss walking with a s-curve tail03 S-curve
Moss walking with a bow tail04 Bow
Moss walking with a 12 segments, final tail05 12 segments, final

What I Learned

Small details like a delayed follow-through, easing, a 1px breath, or a blink make a creature feel alive more than big movements do.