How to Make an Escape Room Game
An escape room is a chain of locks where each answer opens the next question. The design is a dependency map, a fair inventory and hints that rescue without spoiling.

Key takeaways
- Draw the puzzle chain as a dependency map before building any room. It shows dead ends, bottlenecks and the order players will solve things.
- Run two or three puzzle threads in parallel so a stuck player always has something else to try.
- An inventory needs three verbs: inspect, use on something, combine with something.
- Tiered hints (nudge, direction, answer) keyed to the player's current progress keep the game finishable.
To make an escape room game, design the puzzles first as a chain of dependencies: each puzzle needs something (an item, a code, information) and gives something that opens a later puzzle, ending in the final door. Then build rooms with clickable hotspots, an inventory where items can be inspected, used and combined, and a hint system that gives progressively stronger help for whatever the player is stuck on. A first online escape room with 8 to 12 puzzles in one or two rooms takes 20 to 40 minutes to play and is a very finishable project.
Start with a dependency map
Professional escape room designers plan with a puzzle map (sometimes called a flowchart or dependency chart). Each box is a puzzle. Each arrow is something one puzzle produces that another needs. For example:
- 01The painting is crooked. Straighten it to reveal four colored dots → gives a color order.
- 02The bookshelf has books in four colors. Pull them in the color order → a drawer opens with a UV flashlight.
- 03Use the UV flashlight on the desk → reveals the number 4719.
- 04The safe takes 4 digits. 4719 opens it → gives a brass key and half a torn photo.
- 05The other half of the photo is under the rug. Combine the halves → shows a clock reading 3:45.
- 06Set the grandfather clock to 3:45 → its door opens with the final key.
Drawn as a map, problems become obvious. A purely linear chain (one puzzle after another) means one stuck puzzle stops everything. A good map has two or three parallel threads that merge near the end, so a player stuck on the bookshelf can work on the rug and photo thread meanwhile. Keep the map as data in the game too: puzzles, what each requires and what each gives. It makes the hint system easy, as below.
Puzzle types that work on a screen
- Combination locks: digits, letters, colors, symbols. The workhorse; vary what the code is hidden in.
- Hidden objects: an item behind a painting, under a rug, in a coat pocket.
- Observation: count something, read a reflection, notice the one clock that is wrong.
- Ordering: arrange items, press buttons in a sequence, set dials.
- Combine items: batteries plus flashlight, string plus magnet.
- Light and dark: a UV light reveals writing; switching off the lights shows glowing marks.
- Ciphers: a simple substitution cipher with the key found elsewhere in the room.
- Sound: a melody played by a music box, repeated on a piano. Provide a visual alternative for players who cannot hear it.
Rooms, views and hotspots
Most online escape rooms are point-and-click: the player sees a room from a fixed view, turns left or right between walls, and clicks hotspots to zoom into a detail (the desk, the safe, the clock). Each zoomed view can have its own hotspots. This is far easier to build and to play on a phone than a free-walking 3D room. A 3D room where players walk around is possible in the browser too, and it adds atmosphere, but it adds movement controls and makes small clues harder to spot.
- Make hotspots generous in size, especially on phones.
- Change the cursor or give a small highlight on interactive spots, at least as an option.
- Show a short line of text when something is inspected ("The drawer is locked. The keyhole is brass."). It confirms the click and hints at the solution.
- Track state per object: open or closed, item taken or not, lock solved or not.
An inventory with three verbs
The inventory is a bar of collected items. It needs three actions:
- Inspect: open a close-up of the item. Rotate it, flip it over, notice the number on the back. Many puzzles hide in inspection.
- Use: select the item, then click a hotspot in the room. Key on the drawer, UV light on the desk.
- Combine: drag one item onto another. Photo half plus photo half.
When an item has been fully used, remove it from the bar. Players treat items still in the inventory as unsolved, and a used key still sitting there sends them looking for another lock.
A hint system that rescues without spoiling
In a physical escape room, a game master watches and gives hints. Online, the hint system plays that role. Because the puzzle map is data, the game knows which puzzles are currently solvable but unsolved. Hints come from there:
- 01Nudge: where to look. "The painting does not hang quite straight."
- 02Direction: what to do. "The dots behind the painting might be an order for something with the same colors."
- 03Answer: the solution. "Pull the books red, blue, green, yellow."
Offer hints on demand with a short cooldown, or offer one automatically after a few minutes without progress. If there is a score or a timer, hints can cost a little time. Never punish players so harshly for hints that they would rather quit. The tutorial design guide covers timing hints by how often a player fails.
An escape room brief to paste
An online escape room game for the browser, about 30 minutes. Setting: a retired clockmaker's study in warm painted illustration style. Point-and-click: four walls, arrows to turn, click hotspots to zoom into the desk, bookshelf, painting, safe, grandfather clock and rug. Puzzle map stored as data: each puzzle lists what it requires and what it gives. Two parallel threads that merge at the end. Thread A: crooked painting hides four colored dots; pull bookshelf books in that color order; drawer gives a UV flashlight; UV on the desk shows 4719; the safe opens to a brass key and half a photo. Thread B: the rug hides the other photo half; combine halves to see a clock at 3:45. Final: set the grandfather clock to 3:45 with the brass key to get the door key. Inventory bar with inspect (rotate and flip items), use on hotspot, and combine. Used items disappear. Hint button with three tiers (nudge, direction, answer) for whichever unsolved puzzle is available now, 60-second cooldown. Optional 45-minute timer, final screen with time and hints used. Ticking clock ambience.
Playtest with someone who has never seen it, and watch without helping. Note every moment they click something you did not expect, and every minute they are stuck. Those notes are your next requests to the agent. A shared preview link makes it easy to send a test build before you publish. The playtesting guide covers what to write down while they play.
Escape rooms for teams
Online escape rooms are popular for remote team events and classrooms. A co-op version where every player sees the same room state, and different players can see different clues (one has the cipher, another has the message), creates real teamwork. Shared state that changes a few times a minute is light for realtime: Startbase can build it on the backend's realtime channels or a room server. Our multiplayer guide covers rooms, and the games use case has more ideas for group play. For people running those events, see the AI app builder for event organizers.
Escape room mistakes
- Pixel hunting. Tiny hotspots on a busy picture make players click everywhere. Make interactive things visibly special.
- Outside knowledge. If a puzzle needs knowing Morse code, put the Morse chart in the room.
- Ambiguous answers. A code that could be read two ways frustrates. Accept both or remove the ambiguity.
- One long linear chain. One stuck point blocks the whole game.
- No feedback on wrong answers. A lock that silently ignores wrong codes looks broken. Rattle it.
Frequently asked questions
How many puzzles should an escape room game have?
Eight to twelve puzzles give a 20 to 40 minute game. Arrange them in two or three parallel threads that come together at the final lock.
How do you design escape room puzzles?
Start with a dependency map: what each puzzle needs and what it gives. Use varied types such as locks, hidden objects, ordering, combining items and ciphers, and make sure every clue is in the room.
How should hints work in an online escape room?
Use tiers: a nudge on where to look, then a direction on what to do, then the answer, always for a puzzle the player can solve right now.
Can an online escape room be played as a team?
Yes. A co-op version shares the room state between players, and giving different players different clues forces them to talk. It works well for remote team events.

