Capsule Ring's cover: the gold game title circled by a thin ring above a glass capsule machine, beside a gold key bursting out of an open capsule

Case study

Capsule Ring

Hold, let go in the moving gold band, and fill a moon arcade's four keepsake shelves before your Ring chips run out.

Made for
Slapjam #3, theme One Button, a portrait game for phones
Built
29 November 2026, 4 commits to v1.0.0
Art style
86 Neon cel vector, drawn in code
Sound
Synthwave bleeps and music, played live in code
Result
Rating ends 7 December 2026

The goal

The jam's theme was One Button: the whole game played with a single input, one tap, one hold, one release, in a portrait game for phones. I wanted the button to be a real thing in the world, so Capsule Ring is a capsule machine, and the gold dial on its pedestal is the only place a press counts, on every screen.

The Ring Machine stands in the night arcade of a small station on a ringed moon and holds 100 keepsakes, on four shelves of 25: the Workshop, the Galley & Bunks, the Observatory and Bobble Bay. A spin costs 10 Ring chips. A tap spins plain. A hold fills the dial, and letting go in the gold band gives better odds and 8 chips back. Repeats sell back for chips and a full shelf pays 100. Fill all four shelves to win, or run out of chips and the machine goes dark.

The band jumps to a new place after every spin and narrows from 15 % of the dial to 8 % as the shelves fill, so the one skill keeps asking for care until the last gap.

How it was built

Before the jam I had my own tooling, built with Claude: a base template, the tools that build and check a web game, and the engine behind my Neon cel vector art style. Everything in the game itself was made during the jam. The first commit and v1.0.0 are both from 29 November.

Claude Code wrote the game in three batches, each from a brief I approved: the whole game, then my notes from playing it, then the release. Node bots played 1,000 runs each as a skilled player, an average player and a player who only taps, to set the odds and the chip values. I play tested the builds in Firefox.

The game is drawn on a 720 by 1280 canvas and scaled to fit, so the same screen works in a phone browser, in itch's 450 by 800 window and on a desktop monitor.

  • 100keepsakes on four shelves
  • 1button, the gold dial
  • 3code batches, each approved
  • 15minutes, an average winning run
The Ring Machine under four shelves of keepsakes, its gold dial glowing as it charges, with 128 chips and 42 of 100 found
Holding the gold dial. 42 of 100 found.
A Snow globe bursting out of its capsule, marked RARE, with the line New on the Galley & Bunks shelf and 6 chips
A rare Snow globe, new on the Galley & Bunks shelf.
The four shelves nearly full, with 92 of 100 found and 96 chips left
92 of 100 found, and the chips are running low.
All four shelves lit in gold, the Crowned Bobble on show and the last capsule open in the tray
The wall is full. The last capsule lies open in the tray.

Two problems and their fixes

Problem 1

A full wall took twice as long as planned

The plan said a run to a full wall would take about ten minutes. That figure came from a quick model of the rules, which gave each spin about three seconds. Once the approved animations were in, a new keepsake took about seven seconds from press to shelf, and the bots' skilled player needed about 20 minutes to fill the wall.

Fix: I settled on about 15 minutes for a winning run. The spin, the drop and the wobble are shorter, and a repeat shows for half a second, while a new keepsake stays on screen about a second longer, since it is the moment a run is for. Missing keepsakes now come up a little more often, too. The average player's winning run now takes about 15 and a half minutes, and the skilled player still wins every time.

Problem 2

The small print was too small on a phone

The credits under the title were 16 pixels tall on the 720 wide canvas. A phone 390 pixels wide shows that canvas at a little over half size, so the credits came out about 9 pixels tall. The art had been looked at full size, where they read fine. A phone browser's bottom bar could also sit over the lowest prompts.

Fix: the credits and prompts are now 24 pixels on the canvas, and the credits sit higher, under the logo. The screen fits the part of the window the phone really shows, so its bar no longer covers anything, and a script checks every text's size and its distance from the bottom edge.

One more change came from playing the first build. At first a press anywhere on the screen counted as the button. I narrowed it to the gold dial, so the button is one thing you can see and point at, and every screen from the title to the win uses it.

Art and sound

The art is my Neon cel vector style: flat cel-shaded shapes with dark outlines, under indigo and gold arcade light. Every picture is drawn in code: the machine, a capsule for each of the four rarities, the 100 keepsakes, the screens, the logo and the cover. Each keepsake is a thing a station hand once used, and Bobble Bay's 25 bobbleheads get nicknames from their looks.

The Crowned Bobble, a smiling orange bobblehead in a gold crown on a spring
Crowned Bobble
A purple tape player with two cream reels
Tape player
A blue air flask with a gold cap and a red valve
Air flask
A gold and indigo legendary capsule in a soft glow
Legendary capsule

The sound is Synthwave in A minor. Square blips tick as the ring spins, a saw chord rises and opens while you hold, a ping marks the gold band, and the reveals climb from two notes for a common keepsake to a full chord that turns to A major for a legendary one. Good spins rise and open the filter, and repeats fall and close it.

Music came in the second batch, after I played the first build and wanted a tune that matched the theme. It plays in four chunks of two takes each, in an order drawn fresh every run, so a quarter of an hour never loops the same way. With ten or fewer keepsakes missing, a brighter layer joins in, and the music ducks under every reveal. Every sound and the music are played live by Web Audio, with no audio files, and I approved the set by ear.

The result

Submissions to Slapjam #3 close on 30 November, and rating runs until 7 December 2026. The place and what players said will go here when the results are in.

How AI was used

I made Capsule Ring with Claude, Anthropic's AI assistant. Claude Code wrote the game's code, each batch from a brief I approved. Claude drew the art in code (the machine, the capsules, the keepsakes, the screens, the logo and the cover), made the synth sounds and the music in code and drafted the interface words. I set the rules, the look and the targets, approved the art and the sound, approved every batch and play tested the builds.

No image or audio generator was used, and no language model runs in the game. The game uses no outside libraries, and its release bundle is made with esbuild. The Neon cel vector engine, the base template and the build and test tools are my own tooling, built with Claude before the jam. The font is Fredoka, under the SIL Open Font License.