Tabby Trails · devlogPlay it · RSS

A wind-up turnip that takes orders

At the end of a new cat's welcome to Tabby Trails, the mayor hands it a turnip. It has two feet, a leaf on its head and a gold key in its back, and if you tell it what to do, in very small words, it will go and do it while you get on with something else.

They're called sproutlings. This one is Pip, which is the name the game gives your first one as soon as it has something to do (Bean and Spud are next in line). Pip's whole job in that clip is five commands long:

The sproutling's screen in the game. At the top a green Go! button and the name Pip in yellow. Under it a stack of rounded, coloured blocks like puzzle pieces: a blue block reading Repeat 8 times, and inside it a purple block reading If blocked ahead holding two green blocks that each say Chop, then an orange block that says Forward. Dashed + Add command buttons mark where more could go. On the right, a list headed It has collected says Nothing yet.

Repeat eight times: if something is in the way, chop it, then chop what's left of it, then take a step. A tree takes one chop and its stump takes the other, which is why there are two. When the commands run out a sproutling always walks back to where it was set down, and when the cat picks it up, everything in its bag flies to the chest after it.

One winding of the key is good for 100 steps and 20 swings, so a single turnip can only turn over so much of the countryside before it droops and has to be wound again. I like that about it.

How it thinks

The game flattens the stack of blocks into a plain list of steps and runs it on a machine so small that its whole state is a few numbers. So a sproutling halfway down a row can be saved with the world, or handed to the room when friends are playing, and it carries on from the step it was on.

The same machine can run without touching the world, and that gets used twice. The dotted line in front of Pip is the game running the program in its head to show where it would go. And when a program plants or paves, the sproutling runs it in its head first to count the seeds or pebbles it'll get through, and takes that many from your chest when you wind it up. Nobody has to pack a turnip's lunch.

The blocks were the one place I gave up on pixels. The game's bitmap font is fine for a hotbar and miserable for a screen full of commands, so the program is ordinary web text laid over the canvas, and everything around it is still drawn by the game.

This week

The screen used to have a little practice field for trying a program out. It's gone: to see what a program does, you set it going. A sproutling that's ready now wears a sign saying how to start it, since nothing about a turnip says "click me". And beacons have names, so a sproutling can be sent to any beacon standing, yours or a friend's, by what it's called.

If you'd like to boss a turnip about, the game runs in the browser, and the mayor will give you yours.

Also lately

Also on bluesky, mastodon