A web-based maze runner game where you navigate through a randomly generated maze, collect powerups, and avoid enemies.
- Use arrow keys to move your character (🔴 red circle)
- Reach the 🟢 green circle (goal) to win
- Avoid 🔵 blue circles (enemies)
- Collect powerups to help you escape:
- 🟣 Purple circles (Invisibility): Press A to activate and become invisible to enemies for 5 seconds
- 🟠 Orange circles (Teleport): Press S to teleport 15 steps toward the goal
- 🧩 Randomly generated maze for each game
- 👾 Multiple enemies with different movement patterns
- 🎁 Two types of powerups
- 🖥️ Responsive design
The game uses HTML5 Canvas for rendering and JavaScript for game logic. The maze is generated using a depth-first search algorithm with backtracking.
The teleport powerup uses a breadth-first search (BFS) with priority queue to find the optimal path toward the goal. It teleports the player 15 steps along this path, or to the goal if it's closer than 15 steps.
Enemies use different movement patterns:
- 🎯 Hunt mode: Moves toward the player
- 🔄 Patrol mode: Moves toward random target points
- 🎲 Wander mode: Moves randomly
- 📈 Add levels with increasing difficulty
- ⏱️ Add a timer and score system
- 👻 Add more types of enemies and powerups
- 🎵 Add sound effects and background music
Found a bug or want to add new features? Contributions are welcome! Feel free to fork this repository and submit a pull request. Let's make this maze runner game even better together! 🙌
If you have any questions or suggestions, please open an issue or reach out to me directly.