Skip to content

saahibawalia/haunted-game

Repository files navigation

Haunted Mansion — Interactive Horror Game

Overview

Haunted Mansion is a browser-based interactive horror game where your choices determine your fate. You play as the heir to a mysterious mansion left behind by your deceased grandfather. What seems like an inheritance quickly turns into something far more unsettling.

Explore different rooms, make decisions, and try to survive what exists inside the house.


Features

  • Typewriter text effect with pacing and pauses
  • Sound effects including typing, heartbeat, and ambient whispers
  • Visual effects such as screen flickering and screen shake on death
  • Health system that changes based on player decisions
  • Dynamic background changes for different scenes
  • Branching storyline with multiple paths and endings
  • Restart system for replayability

Gameplay

  • Read the story as it appears on screen
  • Make decisions using the available buttons
  • Monitor your health
  • Progress through different story paths

Each decision changes the outcome and leads to different experiences within the mansion.


Project Structure

haunted-mansion/
│
├── index.html
├── style.css
├── script.js
│
├── images/
│   ├── haunted-house.png
│   ├── mansion-inside.png
│   ├── scary-dog.png
│   └── ghost.png
│
└── sounds/
    ├── typing.mp3
    ├── heartbeat.mp3
    └── whisper.mp3
�� whisper.mp3

How to Run

  1. Download or clone the project
  2. Ensure all files are in the correct folders
  3. Open index.html in a web browser

Note: Click anywhere on the page once to enable audio, as required by most browsers.


Technologies Used

  • HTML
  • CSS
  • JavaScript

Notes

  • For the best experience, use sound
  • The game includes flashing and audio effects
  • Best viewed on desktop browsers

Credits

Developed by the creator of the project


Final Warning

Once you enter the mansion, the experience may not end when you expect it to.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published