Boo-mas: a Christmas game from one prompt and seven messages

A small three.js game about a ghost in a Santa hat. Claude Code built it from one prompt, and seven short messages from me steered it the rest of the way.

Boo-mas is a small three.js game about a ghost in a Santa hat. The lights have gone out on a planet the size of a snow globe, Humbugs are loose, and midnight is coming. You drag a string of fairy lights behind you, and when you close a loop around a tree, a cottage or a snowman, everything inside it lights up.

Light the whole planet before midnight. Open on its own page

Boo heads for the mouse, though WASD, the arrow keys and a gamepad work too. Space or a click is BOO, which flips any Humbug close by onto its back, so you can loop it and wrap it up as a gift. (Humbugs are beetles striped like the mint. Sorry.) On a phone you get a thumb-stick, but the game wants more room than this page gives it, so open it on its own page. It is on itch.io too, and the code is on GitHub.

I did not write any of the code. Claude Code wrote all of it, from one prompt and seven short messages, and this post is a record of what I typed and what came back.

One prompt at one in the morning

I ran Claude Code on Fable 5.2 with the effort set to max. This was the whole brief:

Make a super creative 3D web game built in three.js based around a cute little ghost with a christmas hat on. No constraints, just the most fun playable three.js game you can think of, that has a playful on-theme user interface, will resonate with a hacker news audience (fantastic graphics, animation, polish, juice, interesting gameplay, novel ideas, etc)

Three minutes later I added “use the latest version of three.js”, which turned out to be r187, and then I left it alone.

It worked for 97 minutes with no more input from me, and when it stopped there was a playable game: loops to draw, Humbugs to flip, and a hat that a Humbug can knock off and run away with. The music is a music-box carol that starts out sparse and minor, then moves to the major key as the planet lights up. There is not one image or audio file in the game. The geometry, textures, shaders, music and sound effects are all generated in code, and the only binary files are the UI font and three.js itself.

It tested its own work as it went. It gave the game a ?manual flag that stops the frame loop, drove it from headless Chrome a step at a time with boo.step(seconds), took screenshots and looked at them. Then it wrote an autopilot to play whole nights while it watched for errors and leaks, and rendered the music offline to check the levels.

It also told me what it could not check. It cannot hear the tune or feel the controls, so it set the music and the difficulty by reasoning and by watching the autopilot play.

That first build used about 61.5 million tokens over 123 requests, which sounds worse than it is. About 98% of that was the prompt cache reading the same conversation again on each request, and the new input and output came to about 1.4 million tokens.

Seven messages of steering

I came back to it that evening, played it with a mouse and on my phone, and sent these over the next two hours. They are quoted as I typed them, typos and all.

The game works really well and looks great. I think it would be helpful to have some kind of 3d spherical minimap to help guide players to things they haven’t yet lit

Also the mouse control should be central to the screen, currently there is less resolution when manuevering down because the ghost doesn’t sit directly in the centre of the screen

Also we should allow some progression through the nights, some retained lights length, some speed boost, some powerups with the ability to help you draw a circle that completes at your maximum string length, ensaring humbugs whilst they are alive should give a bonus, multiples should give bonuses, bonuses should stack, there should be more indicators to ongoing things like humbugs eating the lights, presents if offscreen should have a small indicator and groups of unlit objects should track as one indicator until you get closer

should the planet get larger as the nights progress? maybe different winter biomes and various weather patterns?

the indicators should group up more and have less on screen, the notifications and dialogs get hidden by my fingers on movile and should be moved to the top of the screen, the indicators should also not display over the pause screen

the wreath either shouldn’t activate immediately, waiting for a large collection of loopable objects or the player should have a button to press or type

can we also have a virtual joystick on mobile?

The minimap became a glass bauble under the spirit meter that shows the whole planet. It is drawn flat on a 2D canvas, so the game does not have to render the scene twice, and Boo is always in the middle, so the direction of a dot on the globe is the direction to steer.

The fourth message was only a question. Claude said yes and built it, so the planet now grows from a radius of 30 to 42 over six nights. There are five biomes, and the weather bends the rules a little: blizzard gusts push you about, and in freezing fog you have to trust the globe.

Four screenshots of the game in a grid, each showing the ghost trailing a string of coloured lights across a different snowy landscape, labelled The Frozen Lakes in freezing fog, Sugarplum Fields in heavy snow, Icicle Peaks in a blizzard, and The Long Dark under clear skies with an aurora.
Four of the five biomes. Night one is always Pine Hollow; the order after that depends on the planet's seed.

For the wreath I offered two options. It chose the button and kept the other one as a hint: while you carry a wreath, its button shows a live count of what the ring would catch from where you are, and it pulses when that is a good haul.

After the last message I asked it to create a public repository and publish the game with GitHub Pages. What is there now is about 9,200 lines of JavaScript, CSS and HTML, with no build step.

The balance is still a first guess. The autopilot never won a night, so there is no proof yet that the later nights can be won in the time you get. The numbers all live in src/config.js.