Skip to content

This repo contains codes and files of Maze Runner Game built using CSS, HTML and JS. In it the player has to reach the end point by finding path through maze and by avoiding enemies.

License

Notifications You must be signed in to change notification settings

Ramji-Purwar/Maze-Runner-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎮 Maze Runner Game

A web-based maze runner game where you navigate through a randomly generated maze, collect powerups, and avoid enemies.

🔗 Play Now

Play Maze Runner Game

🕹️ How to Play

  1. Use arrow keys to move your character (🔴 red circle)
  2. Reach the 🟢 green circle (goal) to win
  3. Avoid 🔵 blue circles (enemies)
  4. 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

✨ Features

  • 🧩 Randomly generated maze for each game
  • 👾 Multiple enemies with different movement patterns
  • 🎁 Two types of powerups
  • 🖥️ Responsive design

🛠️ Implementation Details

The game uses HTML5 Canvas for rendering and JavaScript for game logic. The maze is generated using a depth-first search algorithm with backtracking.

🌀 Teleportation Algorithm

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.

🤖 Enemy AI

Enemies use different movement patterns:

  • 🎯 Hunt mode: Moves toward the player
  • 🔄 Patrol mode: Moves toward random target points
  • 🎲 Wander mode: Moves randomly

🚀 Future Improvements

  • 📈 Add levels with increasing difficulty
  • ⏱️ Add a timer and score system
  • 👻 Add more types of enemies and powerups
  • 🎵 Add sound effects and background music

👥 Contribute

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.

About

This repo contains codes and files of Maze Runner Game built using CSS, HTML and JS. In it the player has to reach the end point by finding path through maze and by avoiding enemies.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published