There isn't a single image file in Mark's Place. The sofa, the sunset, the rain and the six-storey bunk bed are all drawn by JavaScript while the page loads.
01The brief
I wanted a page on my site that felt like a game you lose an evening to. A little life sim in isometric pixel art, in the house-and-needs tradition, starring me. You build the house, fill it with furniture, and Mark cooks, sleeps, plays records and gets on with his day when you leave him to it.
Before any code, I wrote the brief with Claude as a spec. The quality bar was one line: someone who opens it should think "how is this a web page?"
The spec set the rules. No image files, no outside requests and no copyrighted art: every sprite is drawn in code on a canvas. One plain script with no build step. A strict 2:1 grid of 64 by 32 pixel tiles on a 40 by 40 lot. Lighting is the showpiece: a full day and night, sun shadows that move with the hour, and warm pools of lamplight after dark.
It also fixed the architecture before anything was built. Every piece of furniture is an entry in one list of items, and every thing Mark can do is an entry in one list of actions. Adding something new should only ever mean adding entries. That rule paid for itself later. At times several Claude sessions were adding to the game at once, and none of them needed to understand all of it to add a goat.
02A working house in under an hour
I asked Claude to build it from the spec, one small, checked piece at a time. The first commit drew an empty lot. Eleven minutes later there was a furnished house. Four minutes after that, the sun went down.
0 min
11 min
15 min
42 min| After | What worked |
|---|---|
| 0 min | The renderer, the camera and the lot |
| 11 min | Furniture, walls that cut away when they hide a room, and the starter house |
| 15 min | Sun shadows, day and night, and life outside |
| 42 min | Mark, the character editor, his needs, and free will |
| 49 min | Buy and build modes, with touch controls |
| 52 min | Save, load, export and import |
| 1 hr 12 to 1 hr 55 | Eleven homages to my other side projects |
| 14 hr 26 | The 70th commit |
That's the quick part. The other twelve hours went on what makes it feel finished: sound, a proper catalogue, sitting down properly, and phones.
03How a sprite is drawn
Each piece of furniture is a short list of shaded boxes. Every box gets three tones, one per visible face, coloured outlines rather than black ones, and painted details like drawer handles, cushions and book spines. The game sorts the boxes from back to front and paints them in that order.
Each item is drawn once for each rotation and colour, then kept, so the game isn't redrawing a sofa sixty times a second.
The catalogue is part hand-drawn and part generated. A generator takes a kind of furniture, a parametric drawing with its seats and actions, and combines it with tables of styles and finishes. That gives about 800 items, each with a name like "Teal velvet Chesterfield".
Buy mode has 977 things for sale, with search and filters. Build mode has 747 options: 385 floors, 331 wallpapers, 17 door styles and 14 window styles.
04Light is a separate layer
The light gets its own canvas, at half the resolution of the scene. It starts as a flat fill in the colour of the hour, deep blue at night. Every lamp, window and telly adds a pool of light on top. Then the whole layer is multiplied over the scene, so blue darkens everything and the pools let the colour through.
Scene
Light
Scene × lightAt night the windows throw light onto the garden and the streetlights come on. Weather is the same idea, one layer up.
05Meet Mark
Mark is drawn in code too. He is a small rig of points for his head, arms and legs, posed per frame and drawn in four directions. He has 25 poses.
His look changed twice in the first night. At 42 minutes he had hair and glasses. By half past five in the morning he was bald, with an optional baseball cap in ten colours. Six minutes later the spinning gem over his head went too. It looked like another game's icon, and the spec said no borrowed art, so a small speech bubble with a nine-pixel face shows his mood instead: a smile when his needs are fine, a red frown when one is nearly gone.
He has six needs: hunger, energy, bladder, hygiene, fun and social. Each runs down at its own rate. Left alone, Mark scores every action in the house by how urgent the need it meets is and how far he'd have to walk, picks the best with a little randomness, and finds a path there. He works at his computer from nine to five for money. If his bladder hits zero there's a puddle. If his energy does, he falls asleep on his feet.
On a first visit you choose his look before he moves in. On a phone, that screen had to fit, which took a second attempt.
First screen
Meet Mark
Playing06108 ridiculous things
Then there are the 108 ridiculous items. Each one was drawn by hand in code and has its own action. Later the same morning a small particle engine went in, so every item in the game does something you can see while Mark uses it: a burst when he starts, more while he keeps going, a burst when he stops. The confetti cannon fires confetti. The volcano spits lava. Watering a plant throws water.
Sound is the one exception to the no-files rule. The four background songs are made in code, bar by bar, from chord tables. But synthesised footsteps sound like synthesised footsteps, so the sound effects are 68 recordings, all CC0 or public domain, each traced to its licence: footsteps that change with the floor, rain, the fridge door, the goat.
07My side projects moved in
Mark's Place is also a house for everything else I've built. Each of my other side projects is in there as something you can use, and each one links to its write-up, which has a way back.
| Project | In Mark's Place |
|---|---|
| The Listening Room | A walnut record wall, twin decks and a mixer, big speakers, a neon sign, the "have a good time" rug and a listening chair |
| Baker's Dozen | The drum machine in its donut box, and a dozen donuts |
| ALL CAPS | A metal face mask, a rhyme notebook, a villain's breakfast and some crates |
| Just Bleat It | A goat feeder, and the arcade cabinet |
| Canopy Jam | The old oak in the garden |
| Hardop | Dutch practice at the desk |
| The Basement | The basement dig bench |
| Sample Explorer | A lineage wall |
| This is fine | The hob and oven. You can guess |
| The Press | A two-drum riso and its posters |
| The Hum | A lamp on a chain, and a telly that shows you a few seconds late |
All eleven landed in 43 minutes, because of that rule in the spec: each homage was only new entries in the lists. There are also four secret words to type. I'm not saying which.
The late telly was the one that bit back. Turn it off and on again and the game froze for good. Switching off emptied its store of old frames but kept its place in the store, so the next watch started filling it from the middle. The store looked full while holding gaps, drawing a gap threw an error, and the error skipped the line that schedules the next frame. The fix reset the store, and the main loop now books its next frame before doing anything that could fail.
08Sitting down took three hours
Most of the second half was me playing it on my phone and sending Claude screenshots of whatever looked wrong. Nothing took longer than getting Mark into a chair.
| When | What I saw | The fix |
|---|---|---|
| 09:40 | Mark vanished at desks and on the toilet | Draw him straight after the desk, cut off below its back |
| 10:07 | He glided into seats sideways, through tables | Three steps: turn to face out, step back to the edge, lower into the sit pose |
| 11:15 | With his back to the camera, his legs showed under the seat | Stop his sprite at the seat surface when he faces away |
| 11:24 | The garden desk's backrest jumped in front of him | Only order parts that overlap on screen |
| 12:06 | The six-storey bunk bed rendered very strangely | A depth test for every pixel |
| 12:36 | Buried in the bean bag, hidden by the egg chair, standing on the gold toilet | Novelty seats draw the whole item behind him, at their own seat height |
The backrest is the interesting one. Sorting a seat around Mark means putting every part of it in front of or behind him. Ordering every pair of parts let a chain form through pairs that never touch on screen, and the chain dragged the backrest the wrong side. Only ordering parts that actually overlap fixed it.
The bunk bed was the same problem at full size. The game sorted whole boxes from back to front, and some pairs of boxes have no right order: each is partly in front of the other. So now every pixel keeps a depth, and the nearest part wins wherever two overlap.
09Where else it broke
| What I saw | What broke | The fix |
|---|---|---|
| Nobody in the racing car bed during a nap | Mark was hidden in the bed, but napping never told the bed it was occupied | A nap inside a bed marks it occupied, so the bed draws him under the covers |
| Back from a write-up, Mark was doing the task from before the first one | A restored action always reopened its panel, even one I'd closed | The save remembers whether the panel was open |
| Hear it was silent on my iPhone | The silent switch mutes speech on an iPhone. The game's other sounds were set to ignore it | Hear it plays a silent clip while it speaks, which counts as media playback |
| The Move in button was off the bottom of my phone | The dialog's height counted the space behind Safari's toolbar | Measure the visible screen, pin the buttons, shrink the preview |
Hear it took four attempts. The first three each changed when the speech started, and none of them helped. The phone was on silent. Turn the switch off and it speaks.
10Checking every item
The bunk bed made me ask a bigger question: how many other items look wrong? So Claude checked all of them. It drew every item then in the game at all four rotations, 4,084 pictures, before and after the depth fix, and compared them. 37 kinds of item changed: the bunk bed, a swing, desks, a double sink, the bouncy castle. Every other picture came out identical to the pixel.
Then it checked Mark using everything. For each distinct kind of item and each thing Mark can do with it, it placed the item on open grass, had Mark walk over and start, and took a screenshot at every rotation: 247 combinations and 988 screenshots, reviewed in sheets of four rotations side by side. That's where the bean bag, the egg chair and the empty beds came from.
Some of what looked wrong was right. At two of the four rotations, a wardrobe's front faces away from the camera, so Mark using it stands behind it. A deckchair seen from behind looks thin because it is.
Every change also goes through six scripted checks in a real browser, with the site's real security settings: the first visit and tutorial, buying and undoing, building and undoing, the controls, item effects, and Mark doing things.
11Adding a basketball court
This evening I asked for a basketball court in the front garden. It's a fair test of the rule from the spec: a new thing should only need new entries.
Mostly it did. The court is one item: a floor with a terracotta key and white lines, drawn as a textured box top, and a pole, backboard, rim and net from the same boxes as everything else. "Shoot some hoops" is one action. Mark got a 25th pose, ball at the chest, then both arms up. The ball reuses the particle that's thrown at an item, given a point to aim at, the rim, and allowed to drop on through the net and bounce.
Then Mark walked onto the court and disappeared. The game sorts each item as one box, and the court's box is as tall as the hoop, so Mark standing on the court sorted behind it and the floor painted over him. The fix is the one change that wasn't an entry: an item can now be drawn as two parts, a floor that sorts like a rug and a tall part that sorts by its own footprint.
The first placement put the hoop by the fence. From the camera's side that meant looking at the back of the backboard, with the ball going in somewhere behind it. It now faces the house.
12What's next
Mark's Place isn't open yet. A few more evenings of playing it on my phone and sending screenshots, and it will be.
The lamps are already on.
Built with Claude Code. Every sprite, light and song drawn or written in JavaScript, in one file of 10,384 lines. Sound effects from CC0 and public-domain recordings, credited in the repository. Set in Pixelify Sans and Silkscreen, both under the SIL Open Font License. The clips on this page were recorded frame by frame from the game itself.