I have built a playable browser horror survival game: "THE ASYLUM: Absolute Horror - Silent Descent".
Features Implemented:
-
Atmospheric Horror Visuals & Dynamic Graphics:
- Raytraced Flashlight & Lighting System: Dynamic visibility beam spotlight cone with ambient falloff, flickering battery light, and pitch-black darkness.
- Particle & Blood Physics System: Floor & wall blood splatters, flare sparks, fog motes, and a screen-glass blood frame overlay on damage.
- Screen Effects: Multi-intensity screen shake, red shock flashes, CRT scanline overlay, and zoom-shock jumpscare camera movements.
-
Extreme Stress & Procedural Audio Engine:
- Web Audio API Real-time Horror Synthesizer: Zero-latency sound generation including pitch-shifting heartbeats (ECG BPM), low ambient drones, footstep echoes, monster snarls, flare ignition, and blood-curdling multi-pitch shrieking screams during jumpscares.
- Dynamic ECG Sanity Monitor: Real-time pulse waveform monitor displaying survivor mental stability.
-
Gameplay Mechanics & Monster AI:
- 3 Horrifying Monster Types:
- The Stalker (Wendigo): Lurks in shadows and charges with a screech when lit by the flashlight beam.
- The Sightless Phantom: Creeps silently and tracks sprinting footstep noises.
- The Butcher: Heavy stomping brute that shakes the camera.
- Survial Mechanics: Hide inside metal lockers, throw burning Flares to repel monsters, take Sanity Pills, replace Flashlight Batteries, and collect 5 Cursed Blood Relics to escape.
-
Controls (Keyboard & Touch Mobile):
- Desktop: WASD / Arrow keys for movement, Mouse to target flashlight beam,
Shift to sprint, F or Right-Click to toggle light, E or Space to hide/interact, Q for Flares, R for Sanity Pills.
- Mobile / Touch Devices: On-screen virtual joystick for 360° movement and quick action buttons.
-
Game States & Score System:
- Cinematic Start Menu: Animated background, difficulty options (Story, Terror, Apocalypse), and a Survival Manual guide.
- Real-Time HUD & Pause Screen: Audio volume controls, scream volume intensity slider, objective tracker, inventory quick slots.
- Jumpscare & Game-Over Modal: Full-screen jumpscare with immediate 1-tap restart and a local High Score leaderboard stored in
localStorage.
Files built: index.html, src/index.css, src/audio/horrorAudio.ts, src/game/types.ts, src/game/map.ts, src/game/engine.ts, src/components/HorrorCanvas.tsx, src/components/GameHUD.tsx, src/components/TouchControls.tsx, src/components/JumpscareGameOver.tsx, src/components/VictoryModal.tsx, src/components/PauseModal.tsx, src/components/StartMenu.tsx, src/App.tsx