Face your nightmares โ A fast-paced, browser-based 3D first-person shooter built with Three.js. Survive the timer, hunt down monsters, and conquer the shifting realms.
- Survival Mode: Survive 120 seconds of pure nightmare.
- Dynamic Difficulty: As your score increases, enemies gain speed and aggression.
- Realm Shifts: The environment's atmosphere and background color change as you reach score milestones.
- High Score Tracking: Your "Nightmare High Score" is saved locally to your browser.
- Melee Stalkers: Spiked monstrosities that chase you relentlessly.
- Skeletal Archers: Static sentinels that snipe from a distance with projectile arrows.
- Nightmare Bats: High-speed aerial threats with animated wing flaps.
- The Boss: A massive, high-HP purple titan that appears at major score thresholds.
| Type | Effect | Visual |
|---|---|---|
| Health | Instantly restores +25 HP | Green Orb |
| Slow-Mo | Dilates time, slowing all enemies for 6s | Blue Orb |
| Multi-Shot | Triple-spread fire for 8s | Orange Orb |
| Action | Desktop | Mobile |
|---|---|---|
| Movement | W A S D / Arrow Keys |
(Movement follows look) |
| Look/Aim | Mouse Drag | Swipe Screen |
| Shoot | Click / Tap | Click / Tap |
| Audio | Toggle ๐ Top-Right | Toggle ๐ Top-Right |
- Clone the repository:
git clone https://github.com/your-username/nightmare-trigger.git
- Navigate to the directory:
cd nightmare-trigger - Open
index.htmlin your browser.
This project uses a clean modular architecture:
index.html: Entry point and UI.style.css: Visual effects and interface design.script.js: Core game engine and Three.js physics.
- Enhanced Enemy Roster: Ghosts, skeleton mages, and a final campaign boss.
- Powerโup Synergy: Combinations like Speed Boost + Multi-Shot.
- Immersive Soundscape: Optional background music and spatial sound effects.
- Wave-Based Progression: Increasing difficulty tiers.
- Collection System: Achievements and unique unlockable skins.
- (Have an idea? Open an issue or a pull request!)
Contributions are welcome! If youโd like to improve the nightmare:
- Fork the repo.
- Create a feature branch.
- Commit your changes.
- Open a pull request.
Please star the repository if you enjoy the game โ it helps others discover it!
This project is licensed under the MIT License - see the LICENSE file for details.
If you enjoyed the nightmare, consider giving this repo a โญ!