A scary 3D flashlight game.
- User
A scary 3D flashlight game.
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
A scary 3D flashlight game.
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
I'll create a scary 3D flashlight horror game. Let me start by exploring the project structure.
Now I'll build the game. Starting with the maze generation and procedural texture modules.
Now the procedural texture generator (no external assets — everything is drawn at runtime).
Now the procedural audio engine (drones, heartbeat, footsteps, growls, screams).
Now the core game engine — Three.js scene, maze rendering, flashlight, AI monster, and player controller.
Fixing the type errors:
Now the UI layer — HUD, overlays, and menu screens.
Finally, the App shell that wires the engine to the UI.
A few refinements — beam falloff, light tuning, door orientation, and the pointer-lock guard:
Let me fix several gameplay-critical distance calculations I spotted during review.
Adding pointer-lock failure recovery and initial camera placement to prevent any soft-lock:
Adding a "fuse locator" dial so players can navigate the dark maze without frustration:
Let me verify the final state of the core update logic:
Found a real bug — the monster could deadlock in patrol if its target tile is unreachable. Fixing:
PENUMBRA is built and compiling cleanly — a complete first-person 3D horror game running on Three.js, with every asset (textures, sounds, the creature) generated procedurally at runtime so it ships as a single file.
The game
R. When the light goes, the screen sinks into near-total blackness and only the creature's eyes glow.The creature A 2.3m gaunt figure built from primitives with an animated gait, tracking head, and emissive eyes that cast their own light. It runs a BFS flow-field through the maze with patrol / hunt / flee states, hears your footsteps, sees your beam, gets faster with every fuse you take, and lunges into the camera for a full 3D jumpscare when it catches you.
Atmosphere & tech
Three difficulty tiers, pause/restart/mute, and pointer-lock recovery so it can never soft-lock. Headphones strongly recommended.
Files built: src/game/maze.ts, src/game/textures.ts, src/game/audio.ts, src/game/Game.ts, src/index.css, src/components/Ui.tsx, src/App.tsx, index.html