This is a simple maze game implemented in C++. The player navigates through a maze, collects treasures, avoids monsters, and tries to achieve the highest score.
- Move the player character in four directions: up, down, left, and right.
- Shoot in the direction the player is facing to eliminate monsters.
- Collect treasures to increase the score.
- Avoid monsters to prevent score penalties.
- The game ends when the player decides to quit.
- C++ compiler (e.g., GCC or Visual Studio)
-
Clone the repository:
git clone https://github.com/steepcloud/Maze-Game.git
-
Navigate to the project directory:
cd Maze-Game/Maze/Maze
-
Compile for the source code:
- For GCC:
g++ Maze.cpp -o Maze
- For Visual Studio (via Developer Command Prompt):
cl Maze.cpp
-
Run the executable:
- For GCC:
./Maze
- For Visual Studio:
Maze.exe
Use the following controls to navigate through the maze:
i: Move up
j: Move left
k: Move down
l: Move right
s: Shoot in the direction the player is facing
q: Quit the game
The maze is represented by a grid, and each cell has a specific symbol representing its content:
1: Wall
0: Clear path
^, v, <, >: Player character facing up, down, left, and right, respectively
T: Treasure
M: Monster
The objective is to collect treasures, avoid monsters, and achieve the highest score possible.
Contributions are welcome! If you have any ideas, improvements, or bug fixes, please open an issue or submit a pull request.
This project is licensed under the MIT license.