Skip to content
 
 

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bridge Horror House

License: MIT

A first-person haunted-house escape game that runs entirely in the browser. You wake up locked inside an abandoned house at night. Three brass keys are hidden in the dark rooms. Find them, unlock the front door, and get out — you are not alone.

Built by BridgeMind using the design constitution in SYSTEM_PROMPT.md — the exact system prompt used to create this game. Graphics and atmosphere first, functionality second.

Headphones strongly recommended. Contains sudden loud sounds and flashing imagery.

Quick start

npm install
npm run dev

Open the printed localhost URL and click Enter.

npm run build    # production bundle → dist/
npm run preview  # serve the production build

Controls

Input Action
Mouse Look
W A S D Move
Shift Sprint
E Interact (keys, batteries, notes, doors)
F Flashlight on/off
Esc Pause (release mouse)

How to play

  1. Explore the dark rooms with your flashlight
  2. Find the 3 brass keys — locations are randomized each run within the kitchen, study, and bedroom
  3. Read the notes for lore and hints
  4. After the 2nd key, he starts stalking you — he manifests nearby and drifts toward you through walls
  5. Taking the final key wakes him fully — blackout, then a chase to the front door

Fighting back

  • The light burns him. Hold your flashlight beam on him — the burn meter above the crosshair fills, and when it completes he shrieks apart
  • During the finale chase, a banish only buys time — he reforms and resumes
  • The beam drains your battery (bottom-left bar); burning him drains it fast
  • Spare batteries are scattered through the house (living room, dining room, hallway, kitchen)
  • Below 20% the bulb sputters; at 0% you're in the dark until you find spares

If he touches you, the house keeps you. Click Try Again.

Tech

  • Three.js (WebGL2) + Vite, vanilla JavaScript — three is the only dependency
  • Zero asset files: every texture is painted procedurally on <canvas> (wood floors, wallpaper, plaster, portraits, the entity's face), and every sound is synthesized with the Web Audio API (drones, rain, thunder, whispers, heartbeat, chase music, the scream)
  • ACES filmic tone mapping, exponential fog, bloom post-processing, PCF soft shadows from a single swaying flashlight, dust motes, film grain + vignette overlays
  • One-shot scripted scares, randomized ambient dread, lightning through windows, stalking phase, and a finale chase where the entity glides through walls

Project structure

bridge-horror-house/
├── SYSTEM_PROMPT.md   # design constitution used to build this game
├── index.html         # UI overlays (title, HUD, death, win)
├── src/
│   ├── main.js
│   ├── Game.js
│   ├── world/         # House.js, Textures.js
│   ├── player/        # Player.js
│   ├── systems/       # AudioEngine, Ghost, ScareDirector
│   └── ui/            # HUD.js

Contributing

Issues and pull requests are welcome. Keep changes scoped to this game — see SYSTEM_PROMPT.md for design intent and scope guardrails.

License

MIT — Copyright (c) 2026 BridgeMind

About

Stateloop publishing fork of bridge-mind/bridge-horror-house. Original game and MIT license by its upstream authors.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages