Scott Piercea small game for the browser

I have a room

It has windows and no doors.

What if you woke up in a room with windows but no door and all you could do was stitch together your memories from the stuff around you?

Open in its own tab

Nothing here will jump out at you. It's a sunny morning, an old man's things, and a life to piece back together.

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 the city and the bay are way down below. There is no door. You don't remember how you got here, or much of anything, except your name.

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 there's a working computer, the correspondence engine: brass and walnut with a glass screen. Write to somebody in the city below and they write back. On a computer you can sit down at it, and it boots a little Linux with Zork on it.

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 Astley project.
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 an old man's voice. The first answer for each spot is saved, so it's one life story everybody shares.
  • The computer in the corner is a real Linux running in your browser on v86, an x86 emulator in WebAssembly. Type games and you'll find Zork.