A Prompt for a Flashlight Horror Maze
A complete brief for a short browser horror game built on darkness, sound and one stalker, with why each rule is there and how to fix the scares that fall flat.

Key takeaways
- Fear in a maze comes from limited light, a limited resource and one threat with readable rules. Write all three into the brief.
- Tell the agent how the creature senses you (sound, light, sight) so players can learn to survive instead of dying at random.
- Ask for brightness and motion settings in the first build. Dark games on phones are unplayable without them.
A flashlight horror maze prompt should define the light (a narrow beam), the resource (a battery that drains), the threat (one creature with rules the player can learn) and the goal, then set the sound design as carefully as the visuals. The brief below builds a short first-person 3D maze game for the browser that takes 10 to 15 minutes to finish, scary without relying on a jump scare every corridor.
The maze brief
Build a first-person 3D horror game for the browser called Undergrowth, for desktop with keyboard and mouse, and phones with a left thumb stick and right-side drag to look. The player wakes in an overgrown hedge maze at night inside an abandoned estate, about 40 by 40 meters, hand laid out as one level with dead ends, a fountain courtyard in the center and an iron gate at the far edge. Goal: find three iron keys hidden in the maze and open the gate. Light: the player holds a flashlight with a narrow cone and soft edges; outside the beam the world is almost black, with faint moonlight on the hedge tops so the layout is barely readable. Battery: drains while the light is on, from full to empty in about 4 minutes; batteries lie in six fixed spots; F toggles the light. The stalker: one tall thin figure that wanders the maze. It hears sound: running makes noise in a large radius, walking in a small radius, crouch-walking (C) is silent. It is drawn to the flashlight beam if the beam points at it from within 15 meters. When it notices the player it walks toward the last noise; when it sees the player it chases at slightly faster than walking speed but slower than running. If it reaches the player: a short screen distortion, a fade to black, and a restart at the last key collected, with keys kept. Running drains stamina in 5 seconds and refills in 8. Sound is half the game: wind in the hedges, the player's footsteps changing on gravel and grass, a slow heartbeat that rises as the stalker comes within 20 meters, its dragging footsteps positioned in 3D so headphones tell direction, a metallic clink when a key is picked up. No music except a low drone that swells during a chase. At most one scripted scare: a crow bursting from a hedge the first time the player finds a key. Settings: brightness, mouse and touch look sensitivity, field of view, and a reduced head bob option. A short opening card says headphones recommended. First version: one maze, no inventory screen, no other enemies.
Why the brief works
- Light as the only window. A narrow beam means the player sees what they choose to see and nothing else. That choice, and what lurks outside it, carries the fear.
- Battery as pressure. Four minutes of light for a 10 to 15 minute game forces players to walk in the dark sometimes. That is the scariest part, and it comes from a single number.
- A creature with readable senses. Hearing by noise radius and attraction to the beam give players a strategy: crouch, turn off the light, wait. Monsters that find you at random only frustrate.
- Chase speed between walk and run. Players can escape by running, but running is loud and limited by stamina. Every chase becomes a decision.
- Keys kept on death. Losing all progress turns fear into tedium on the third death. Keeping keys keeps tension where it belongs.
- Positional sound and a heartbeat. Hearing where the stalker is, and feeling it approach through the heartbeat, generates more dread than seeing it.
- One scripted scare. Jump scares lose power fast. One early fake scare makes players nervous for the rest of the game.
The round-one guide on how to make a horror game covers pacing and atmosphere across horror styles. For the stalker's logic (wander, investigate, chase states), the enemy AI guide is a useful companion.
The first three follow-up prompts
- 01"Show me the stalker's states (wander, investigate noise, chase, lose track) and the numbers for each as dials in the engine panel: hearing radius for walk and run, beam detection range, chase speed and how long it searches before going back to wandering."
- 02"Add three hiding spots, tall gaps in the hedges the player can step into with E. Inside, the screen narrows, the breathing gets loud and the stalker cannot see the player unless it heard them enter. It searches nearby for 10 seconds, then leaves."
- 03"Run the game on a mid-range phone setting and report frame time. Keep it at 60 frames per second there: simplify hedge geometry far from the player, use one shadow-casting light for the flashlight only, and lower the fog quality if needed."
Two variations
A top-down 2D version
Same rules, seen from above: "2D top-down, pixel art, the flashlight as a cone of light in a dark scene with walls casting shadows inside the cone." Top-down horror loses some immersion but gains clarity, and it runs well on any phone. It is also the easier place to tune the stalker before going 3D.
Two players, one flashlight
A co-op twist: "Two players in a room by link. Only one has the flashlight; the other carries a map that only shows the area within 10 meters. They must talk to find the keys." Each holds half the information, and both are in danger. Room servers run in previews on every plan and publish with the game on paid plans.
What usually goes wrong and how to ask for the fix
- It is pitch black on phones. Phone screens in daylight crush dark colors. Ask: "On phones the maze is invisible. Raise the base moonlight slightly, add the brightness setting to the first screen with a sample image players adjust until it is barely visible, and save their choice."
- The stalker gets stuck on hedges or teleports. Ask: "Give the stalker proper pathfinding around the maze walls, and if it has not moved for 3 seconds while chasing, recompute its path instead of sliding through walls."
- The stalker is unfair. It finds a crouching player in the dark. Ask: "Log why the stalker noticed me each time (noise, beam or sight). It should never notice a crouching player with the light off unless it touches them."
- Players get motion sick. Ask: "Reduce head bob by default, add a small dot in the center of the screen as an option, and keep field of view at 75 degrees or wider on desktop."
- Sound plays before the player taps. Browsers block audio until the first interaction. Ask: "Start all audio after the first click or tap on the opening card, and make sure the heartbeat and footsteps work on phones."
Frequently asked questions
What makes a horror maze scary?
Limited vision, a limited resource like a battery, and a threat with rules the player can learn but not fully control. Sound design, especially directional footsteps and a heartbeat, does most of the work.
Can a 3D horror game run smoothly in a phone browser?
Yes, if you keep one shadow-casting light, simplify distant geometry and test on a mid-range phone. Ask the agent to measure frame time and keep it within budget.
How many jump scares should a short horror game have?
Very few. One early scripted scare sets the mood; after that, tension from the creature and sound works better than repeated jump scares.

