Escape Room

Game designInteraction design3DGodotPhysicsUX design

A Portal-inspired first-person escape room in Godot, built around a magnet that pushes and pulls metal objects around the room.

I wanted to try my hand at game design, since it’s a lot like UX and designing a complex software product, but with an extra dimension and a lot more interaction design to think through.

When the player, the camera, and physics are all fighting for the same space, “the interface” stops being a screen and becomes the whole room.

I got inspired to start here by Box3D, Erin Catto’s physics engine. It’s still young and simple, which is exactly what made it a good first step: small enough to actually understand what it’s doing, but real enough to build physics-based gameplay on top of.

I picked Godot as the engine because it’s the most beginner-friendly option out there, and this whole thing was my first time working in 3D game design at all.

This was just a test, but it turned out to be a good combination for exploring and building out a small “world” with an actual gameplay loop to solve. I used the physics engine to make something Half-Life/Portal-inspired: a simple first escape room.

The player gets a magnet to manipulate metal objects around the space, and figuring out ways to use that to obstruct the player on their way out ended up being genuinely fun. There’s a lot of room here: I can already see a bunch of interesting puzzle ideas and directions to expand the concept further.

The magnet wasn’t the first idea. I started with a Half-Life-style gravity gun that picked things up and turned them to face you, like carrying something in front of you. Testing it on a long plank leaning against a wall, the plank seemed to ignore the grab entirely, because the gun was busy fighting the wall to rotate it.

Rather than patch that, I changed the tool. A magnet only pulls or pushes, with a strength you can adjust and a polarity you can flip, so it never needs to turn anything. That fixed the plank, and it gave the puzzles more to work with than a plain pick-up ever would.

For now, it was mostly about learning game dev in general, and about the less glamorous side of it too: making sure gameplay bugs got squashed and that the physics engine couldn’t be abused by the player to cheat their way past a puzzle.

That last part turned into its own rabbit hole: getting the player to stand, walk, and slide along walls correctly on a young physics engine surfaced a real chain of bugs. First it crashed, then the fix let you fall through the floor, then the next fix froze you in place. What finally held up was treating the floor under your feet differently from walls and props, so you slide along a wall instead of sticking to it.

Playtesting also turned up ways to cheat. Objects pushed into the door could shove it sideways, so I locked it to only move the way it’s meant to. I also reworked the controls from click-to-toggle to hold to grab and let go to drop, with a one-shot push on the other button. The hand-held magnet is still a stand-in model for now.

Lighting bug leaving most of the room unlit
Lighting issues: baked lighting leaving most of the room pitch black.
A door panel with a face culling artifact
Face culling issues: a panel rendering with inverted normals.
The magnet tool floating in the wrong spot relative to the camera
Hand item positioning issues: the magnet sitting nowhere near where the player’s hand should be.
A malformed prop mesh with stray, overlapping geometry
Modelling issues: a prop mesh with stray, overlapping geometry.

Positioning that magnet correctly in the player’s hand is what actually forced the next tool. Godot’s viewport UI is fine for placing static level geometry, but nudging a hand-held item into an exact spot relative to a moving camera, by dragging axis handles with a mouse, was slow and imprecise in a way that kept missing the mark.

So I built a small debug tool instead: attach it to any object in the scene, and a gamepad lets you fly that object around in 3D while the game is running, then grab its exact position.

The sticks and triggers move it through space, one button slows it right down for the final nudge, and another speeds it up to cover distance. A single press copies the position to the clipboard, ready to paste into the game code, and another logs it so I can capture several spots in one go.

It only runs while the game is playing, because gamepad input in the editor isn’t reliable. That turned out to be a benefit: I was placing things in the real scene, from the player’s own view, which is where they need to look right.

The same control feel turned out to work just as well for textures. I reused it to nudge and scale UVs on props in real time instead of typing offset and scale values in and re-running to check them, so getting a texture to actually line up and read at the right size in-game became the same feel-it-out process as placing the magnet.

It ended up more intuitive than the editor’s own viewport UI for this kind of work, an analog stick maps much more directly onto “nudge this thing through space” than a mouse-dragged handle does, and it turned exact hand-item, prop, and texture placement from a fiddly trial-and-error loop into something I could feel my way through in seconds.

Download CV