Writing · Side project

Canopy Jam: A rhythm game, a six-year-old and a sloth to match the toy

Thirty-three messages, eight pull requests and one photo of a toy sloth. What worked, what broke, and how I prompted.

On Easy, the first song asked for about 1.4 taps a second. It was meant for a six-year-old. Now it asks for 39 a minute across two vines, a practice round comes first, and for the first three songs you can't fall off.

A rhythm game in a rainforest. A furry caramel sloth hangs from a branch between two tall trunks, over a bark highway with three coloured vines. A leaf slides down the yellow vine toward three flower-shaped rings at the bottom.
Song one on Normal. The flowers at the bottom open when you tap them.

01The brief

The first version came out of a chat with Claude. It was a working prototype in one HTML file: a sloth called Bradley, ten songs composed in the browser and every sound synthesised. You tap pads as leaves, flowers and fruit slide down five vines toward a row of flower rings, like Guitar Hero in a tree.

Then I moved it to Claude Code to finish it and put it on this site. I sent the prototype, a brief with three jobs, and one line:

Follow the instructions in the MD file

Claude did the three jobs in order and committed after each, as the brief said.

02Slower, wider, kinder

Easy was fast because nothing scaled with the song. Every song sent leaves down at the same speed, Easy kept every quarter note, and a miss cost the same on song one as on song ten. Now:

Song one on Easy on a phone: two vines, green and red, with one leaf on its way down and a pale flower at the bottom of each vine. The grip meter on the right is nearly full.Easy, song 1
Song ten on Hard on a phone, at night: five vines, a stack of snacks coming down close together, five flowers at the bottom and the word Perfect over a hit.Hard, song 10
Where it starts and where it ends. Two vines and lots of room on the left, five vines at night on the right.

Claude printed snacks per minute for every song and difficulty to show the climb:

SongEasyNormalHard
1 Cecropia Sunrise3961124
2 Algae Groove4476139
3 Hanging Upside Down4686175
4 Cacao Pod Shuffle5192184
5 Hibiscus Hop58104232
6 Liana Swing83188301
7 Rainstorm Riff98208336
8 Toucan Tango104221359
9 Harpy Eagle Escape110265433
10 Canopy Legend127276464

The brief also said song one on Easy should have 15 to 25 notes. Its own spacing rule gives 62. Claude kept the rule, did the sum (15 to 25 would need a gap of about six beats) and told me. It's one number to change if a six-year-old disagrees.

03The silent switch

The brief guessed why there was no sound on my iPhone: Safari sends web game audio through the ringer, so the silent switch mutes it. Claude moved the page onto the same channel as music and video. It also found a second cause the brief hadn't: the game started its audio on the first finger down, and iOS only counts a tap once the finger lifts.

Then the site. My site blocks scripts loaded from anywhere else, and the game loaded its 3D library and fonts from other sites. Claude put copies of both in the game's folder and loosened the security policy for /canopy-jam only. It added a share picture and what a phone needs to put the game on the home screen and play it full screen.

The brief asked Claude to test the preview on a phone-sized screen before I merged. It couldn't: Vercel previews sit behind my login. It said so, ran the same checks on its own copy under the site's real security policy, and waited.

04Cartoon realism

The brief had a long list for the graphics. Claude did most of it:

Song three at noon: a pale blue-green sky, sunlit trees and four vines.Noon
Song seven in the storm: a dark grey sky, rain streaks and five glowing flowers on wet bark.Storm
Song eight at sunset: a pink sky, a dark red forest and petals flying from a hit.Sunset
Song nine at dusk: a deep red sky, dark trunks and leaf scraps flying from the flowers.Dusk
Four of the twelve. Each song has its own time of day, colour grade and weather.
The song select screen: Sloffi hangs from the branch above a row of five song cards, each with a small picture of its world, a name, a tempo and five empty stars. Below are difficulty buttons and a green Play button.
Song select. The pictures on the cards are the real worlds, drawn once when the game loads.
Moss Power on song five: green light runs along both rails of the highway, the multiplier reads 2x and the moss meter on the right is full and glowing.
Moss Power. Green energy runs up the rails and the multiplier doubles.

Settings got Graphics: Auto, High or Low. Auto drops to Low if frames start taking longer than 22 milliseconds.

Song five on High: a hazy golden sky with glow around the sun, soft shadows on the bark and a gently graded picture.High
The same song on Low: the same forest and highway, with a flatter picture, no glow and no soft shadows.Low
Same song on High and Low. Low drops the glow, the shadows and some of the leaves, and keeps everything you play with.
The first version: a brown sloth hangs over a bark highway with two vines and two green flower rings. The trees are blocky green shapes on plain trunks.Before
Today: leafy trees, mist, hanging moss, glowing leaves on the vines, flower rings with petals and a furry caramel sloth between two fixed trunks.After
Song one, before and after. The brown sloth is Bradley. He didn't last the day.

Claude's test machine has no graphics card, so it could only compare costs. On that machine High took 3.2 times as long to draw a frame as the original and Low 1.9 times. It never measured a real phone, and said so.

05Bradley becomes Sloffi

With the three jobs done, I sent a photo of a toy sloth:

Rename the sloth to Sloffi

Colour Sloffi like the attached image instead

If that's a three toed sloth, change the food to suit what it eats

Sloffi is caramel, with a cream face, round grey patches around big black eyes and a grey muzzle. Claude matched the colours and judged the toy a three-toed sloth from the face. Three-toed sloths eat almost nothing but leaves, so the hibiscus, cacao pods, passionflowers and hog plums went. In came Cecropia leaves, young red leaves, tender shoots, heart-shaped liana leaves and fig leaves.

Bradley, the first sloth: dark brown and shaggy, with spiky tufts, a pale face, dark eye stripes and a wide smile, hanging from a branch.Bradley
Sloffi: caramel and thick-furred, with long arms, a cream face, grey patches around the eyes, a grey muzzle and short cream claws on the branch.Sloffi
Same branch, same pose. The toy stays off the internet.

Then I asked for more realism, and Claude rebuilt the body: a pear shape, long arms and short legs, and a coat of up to 24 layers of coarse fur combed downward, because Sloffi hangs. The face is short fur painted with the grey patches and a faint smile. Real sloths have small eyes, so Claude made them smaller, said that moved away from the toy and asked if I wanted them bigger. I'd already asked for them a bit wider apart. That was enough.

A close-up of Sloffi's face between two raised furry arms: a cream face of short fur, soft grey patches around small glossy black eyes, a grey muzzle and a dark leathery nose.
Close up. The face is short fur painted with the grey patches. The arms are up to 24 layers of combed coat.

Then the toes:

Sloffi has 3 toes

Two toes on hands
Three toes on feet

Claude pointed out what that means: two claws on the front feet is a two-toed sloth. The name counts the hands. So the food was changed for the wrong species, and is still right, because two-toed sloths eat leaves too. They also eat fruit and flowers, and Claude offered to bring some back. The title screen now says two-toed. The long hooked claws went the same day:

Shorter toes and nails, match the photo

They're short cream stubs now, like the toy's. And the game got a new name in one message:

Just call it Canopy Jam: Sloffi's Slow Jam

06Bites, not beeps

Let's use real sound effects for notes and menus and button presses

Every munch is now a real bite. Claude found ten recordings on Freesound, all given to the public domain, and cut them to 75 KB in total:

WhenWhat you hear
Sloffi munches a snackOne of four bites: an apple, cabbage or lettuce, pitched a little differently each time. Leafy snacks add a rustle
A missA branch cracking
A tap on an empty vineA soft wooden click
Menu buttonsA wooden click. Play, Next and Retry get a fuller one
Moss Power, secrets and winningA glowing chime

Claude chose and trimmed them by measuring each recording, because it can't listen, and told me so before I merged. The music is still composed in the browser as you play.

One more:

Turn off the sounds when the browser is not the active app or tab

Switch tab or app, or lock the phone, and everything goes quiet. A song pauses and waits for you.

07Fewer words, one button

How to play was long and listed keyboard keys on a phone.

Hide keyboard controls if you're on a touch device

Show these as rows not cards

Make Sloffis eyes a bit wider apart to match the photo I sent
Simplify the how to play too, it's very wordy

It's four short sections now: one line on what to do, the controls for your device, the five snacks in a row each, and four tips. The tips are one line each.

How to play on a phone: a short paragraph, one line of controls, five snack rows with small 3D icons, a list of tips, a round close button top right and a green Got it button pinned at the bottom.How to play
The practice round on a phone. A message reads: This leaf has a long tail. Press and hold the green pad until the tail is all gone. A leaf waits on the green flower, and a white ring labelled Hold pulses over the green pad.Practice
Left: How to play on a phone. Right: the practice round, at the hold step.

Then five messages about closing things. Every panel got a round close button in the corner. I sent a screenshot where Got it was below the bottom of the screen, then another where the win screen's buttons were cut off. Each panel's main button now stays pinned to the bottom while the rest scrolls behind it. The close button floated over the first lines of text, so I sent three more screenshots. It has its own space in a header row now.

The first screen got a loader, so Tap to start doesn't appear before the game can start.

Then I turned the phone sideways and sent four screenshots:

These are not optimised for landscape touch devices. Build a system for every overlay in the game and then fix every overlay for device and orientation

In landscape the panels were all header and footer, with two lines of content between. Claude built a test that opens every overlay at seven screen sizes and measures how much is hidden. How to play had 589 pixels you had to scroll to see on an iPhone held sideways. Then it gave every overlay one shared set of sizes with three tiers: roomy, short for phones in landscape, and tiny for landscape with the browser bars showing. On short screens the long panels flow into two columns, and the Back and Got it buttons go, because the close button does the same job. How to play went from 589 pixels hidden to 16.

How to play on a phone held sideways, before: a large header and a large Got it button with only two lines of instructions visible between them.Before
How to play on a phone held sideways, after: two columns showing the instructions, the controls, the five snacks, all the tips and a Practise the controls button.After
How to play on an iPhone held sideways, with Safari's bars showing.

08A practice round

Let's create an onboarding level before the first one starts, guide the user through the controls including the long press

Ensure that they only see this first time, not every time

The first time you press Play, a practice round comes first. One leaf at a time slides down and waits on its flower until you get it right. A message at the top says what to do, and a ring pulses over the pad to press: tap green, tap red, then hold each one through a leaf with a long tail. Tap too early, or the wrong pad, or let go too soon, and the message says so. You can't miss.

It runs once. Anyone who had already played doesn't get it. Skip practice is always on screen, and How to play has a button to run it again.

09Trees through the branch

when the branch that Sloffi is hanging on passes trees and other branches, the things pass through each other instead of colliding properly

Sloffi's branch never moves. The forest slides toward you to make it look as if you're travelling. The branch was wider than the gap between the rows of trees, so anything planted near the highway drove straight through it.

Before: Sloffi hangs from a long branch while a big leafy tree crown passes straight through the middle of it.Before
After: the branch ends inside a tall dark trunk on the left, and the passing trees stay outside it.After
Same song, same camera. On the left, a tree crown drives through the branch. On the right, the branch ends in its own trunk.

Claude shortened the branch and grew two fixed trees for it to reach between, one each side of the highway. Then it placed the scrolling trees so their widest point always passes outside those two. It checked by measuring the shapes themselves, and the first measurement failed: the fixed trees' own side branches pointed outward, into the path of the crowns going past. It turned them to face the highway, and the next measurement passed with room to spare.

Song ten at night. Sloffi hangs from a short branch between two dark trunks, like an archway over the highway. Five flower rings glow at the bottom and leaf scraps fly from a hit.
The archway on song ten, at night. Everything else in the forest now goes round the outside.
33messages from me, over two days
8pull requests for the game
12pictures I sent, three of them a toy
0lines of code I typed

10What went wrong

What happenedWhat it took
The brief's spacing rule gave 62 notes on song one. The same brief wanted 15 to 25Claude kept the rule and showed the sum. Still 62
No sound on iPhoneTwo causes: the silent switch, and audio starting before iOS counts a tap. Both fixed. Claude couldn't confirm it on a real iPhone
Claude couldn't open the Vercel previewIt sits behind my login. Claude tested its own copy under the same security policy and said that was the limit
The test machine has no graphics cardRelative costs only, and an Auto setting that drops to Low on a slow device
Sloffi's long tufts looked like carrots after the recolourFewer of them, in paler shades
After the realism rebuild, the arms rendered inside out: smooth and grey, no furThe surfaces of the new limbs faced inward. Flipped
Sloffi's forehead glared whiteThe shine on the hair was meant for the long coat. Turned down on the face
The feet had claws, buried in furLonger claws, then short ones like the toy's
The loader never went awayA style rule kept it showing after the game hid it
Text showed through behind the pinned buttonsA solid strip behind them
The close button sat on top of the first lines of textA header row with a space for it
Holds in the practice round took forever on the test machineThey were timed by frames, and the test machine draws few. Now timed by the clock
Trees drove through the branch, then the fix put branches in their wayCaught by measuring before it shipped. Turned to face the highway
The very first tap still makes the old synthesised clickThe recordings can only be unpacked after a tap. Left as it is

11How I prompted

Every message I sent, in order. The brief is in a file, so the first is the shortest.

Follow the instructions in the MD file

Rename the sloth to Sloffi

Colour Sloffi like the attached image instead

If that's a three toed sloth, change the food to suit what it eats

Hide keyboard controls if you're on a touch device

Show these as rows not cards

Just call it Canopy Jam: Sloffi's Slow Jam

The how to play needs a X in the top right corner

Make Sloffis eyes a bit wider apart to match the photo I sent
Simplify the how to play too, it's very wordy

Deploy to /canopy-jam on my site

Let's use real sound effects for notes and menus and button presses

Can we render Sloffi to be much more realistic

Sloffi has 3 toes

Two toes on hands
Three toes on feet

Deploy

Shorter toes and nails, match the photo

Deploy

Needs a loader on the first screen

All modals should have a top right corner close button with the X ico

The button is off the bottom of the screen so it is easy to miss

Turn off the sounds when the browser is not the active app or tab

Make sure the buttons at the bottom are not cut off

Deploy

Ensure the close top right doesn't overlap the content

merge

Let's create an onboarding level before the first one starts, guide the user through the controls including the long press

Ensure that they only see this first time, not every time

merge

when the branch that Sloffi is hanging on passes trees and other branches, the things pass through each other instead of colliding properly

Merge

Write the blog post

These are not optimised for landscape touch devices. Build a system for every overlay in the game and then fix every overlay for device and orientation

Merge

The first paragraph makes it sound like I copied an HTML file when I actually used Claude to make the first prototype and then sent it to Claude Code with the prompt

Merge

The blog post is sparse on images, add more

That's all thirty-three. Five of them came with pictures. What I'd take from it:

Play with Sloffi ↗

Built with Claude Code. 3D by three.js (MIT licence). Sound effects from Freesound by wadaltmon, chestnutjam, actionlewis, j1987, Qvantor, GameAudio, qubodup, newagesoup and one account since deleted, all Creative Commons 0. The music is composed in your browser as you play. Type in the game is Lilita One and Nunito (SIL Open Font Licence). Sloth facts from National Geographic, the Sloth Conservation Foundation, IFAW, WWF and the Smithsonian's National Zoo.