Scott Piercea small game for the browser

The Vicar of Wakefield

I have a room, after Oliver Goldsmith.

Doctor Charles Primrose wakes in a room with windows and no door, remembering nothing but his name. His wife, his six children, a lost fortune, a fire, a winter in the county gaol, and a shabby friend who was not what he seemed: it all comes back one belonging at a time.

Open in its own tab

Nothing here will jump out at you. It's a sunny morning, an old clergyman's things, and a life that came right in the end.

The room

You open your eyes in a big, warm room at dawn. Sun is coming in through seven windows, there's a cherry tree in full bloom outside, and a market town and its harbour are way down below. There is no door. You don't remember how you got here, or much of anything, except that your name is Primrose and you are a clergyman.

The memories belong to the vicar of Oliver Goldsmith's The Vicar of Wakefield (1766): Deborah and her gooseberry wine, George and his flute, Olivia and Sophia, Moses and the gross of green spectacles, Mr Burchell, Squire Thornhill, and Ephraim Jenkinson with his Greek. There's a family portrait in there that was painted too big to get through any door. The neighbors wondered how it would ever get out, and even more how it ever got in.

Everything in the room can be picked up, opened, switched on or asked about: the desk drawers, the teapot, a loose floorboard, the window sill. Each time you put your hand on something, a memory comes back with it. Where the teapot came from. How the sill got that nick. What got tucked in the back of the drawer. Nobody wrote those ahead of time. The first time anyone touches a spot, a language model remembers it, and the room keeps the memory, so the next person hears the same one.

You keep a notebook. Pin a note on anything that seems to matter, and it hangs right there in the room on a little paper tag. The notebook will take you back to any of them. Share a note and you get a link that opens the room at the exact spot and angle you wrote it from, with your words on the tag. You can share the whole notebook the same way.

Over in the corner office is the correspondence engine, Sir William's brass and walnut marvel. Write a letter to Sophia, George, Farmer Flamborough or Mr Jenkinson, seal it, and a little later the answer comes up with the post.

The memories come back in order, too. Eight threads from the book, from the lost fortune to the county gaol to everything coming right, each called up by the things that belong to it, and the notebook writes down what has come back under its chapter heading. There's an ending, and there's an old wireless set that will read you the whole book.

The corner office: a desk under two windows with the brass and walnut correspondence engine, a desk lamp, and cherry blossom outside the glass.
The corner office, where the engine is.
The long table under the chandelier, buried in charts, books, a globe and half a loaf, with mismatched chairs around it.
The long table, buried in the vicar's treatise on the monogamy of the clergy.
The reading nook: an armchair, a bookcase with its ladder, an oil lamp, and a brass telescope at the window.
The reading nook, and the telescope.

How to play

Mouse and keyboard

Look
Move the mouse. The dot in the middle is what you're pointing at.
Walk
W A S D or the arrow keys, or click the floor.
Use
Click a thing. Its buttons are numbered, so keys 1 to 9 work too.
Cursor
Tap Ctrl or Tab for a free pointer, and again to go back to looking.
Notes
N pins a note, J opens the notebook.
Also
M for the menu, F for full screen, the wheel to look closer.

Phone or tablet

Walk
Put your left thumb low on the screen and push.
Look
Drag anywhere else.
Use
Tap a thing and pick from its buttons. Tap the floor to walk there.
Notes
Tap a thing, then Pin a note. The notebook is up in the top right corner.
Zoom
Pinch.

There's no timer and nothing to lose. The menu can turn on a voice that reads the memories aloud, and it runs right in your browser.

How it's made

No game engine here. It's all three.js in the browser, plus a Cloudflare Worker behind it.

  • The walls, windows and curtains are built in code, so the windows are real holes the sun comes through. The furniture is photoscanned models from Poly Haven. A few things that didn't exist anywhere, like the engine and the telescope, went from text to a picture to a 3D model.
  • The light on the walls and the floor is path traced ahead of time in Blender with Cycles, on a 4090 at home, and baked into lightmaps. Your browser mixes them as the sun climbs, so you get soft morning light for the price of a few texture lookups.
  • The two trees outside are grown fresh every time the page loads, using space colonization: scatter points where the crown should be, let the branches grow toward them, and they fight over the room like real ones do. It's seeded, so everybody gets the same cherry tree.
  • The memories come from an LLM on Cloudflare Workers AI. When you click something, the page sends a small crop of the picture around your click, and a vision model tells a memory about that exact spot in the old vicar's voice. The first answer for each spot is saved, so it's one life story everybody shares.
  • Every button belongs to a family that answers in the room before the narrator does: a close look moves the camera, a hand rocks the thing and makes its sound, listening hushes the room, sitting sits you down.