This project features the use of python language and provided libraries to create a mini game where the sprite navigates through a dark maze.
- Player registration with name and age input.
- Character selection from a list of available characters.
- Multiple levels with varying mazes and challenges.
- Collection of treasures to earn points.
- Avoidance of enemies to prevent collisions.
- Progression to the next level upon reaching the exit door.
- Game over when colliding with enemies or collecting all treasures.
- Sound effects for game events.
-
Clone the project to your local machine:
git clone https://github.com/your-username/glow-in-the-dark-maze.git
-
Navigate to the project directory:
cd glow-in-the-dark-maze
-
Run
main.py
to start the game. -
Register your name and age.
-
Select a character.
-
Navigate through the maze using arrow keys.
-
Collect treasures and avoid enemies.
-
Reach the exit door to progress to the next level.
-
Game over conditions: Colliding with enemies or collecting all treasures.
The game currently has three levels with increasing difficulty. Each level introduces new challenges and maze layouts.
Download Python 3.x from the official Python website. Choose the version that matches your operating system. Follow the installation instructions provided on the website for your specific operating system.
- For Windows, make sure to check the option that says "Add Python to PATH" during installation.
- For macOS, you may need to adjust your
PATH
environment variable after installation. - For Linux, Python is often pre-installed. If not, use your package manager to install it.
Ensure that Python is successfully installed by opening a terminal or command prompt and typing:
python --version
You can install Pygame using pip, the Python package installer. Open a terminal or command prompt and run the following command:
pip install pygame
Turtle graphics is included in the Python standard library, so there's no separate installation needed. You can use it directly in your Python scripts.
We used mixer from the pygame library and the code used is
import pygame
pygame.init()
pygame.mixer.init()
-
Game Development:
-
Sound Effects:
This project is licensed under the [LICENSE NAME] - see the LICENSE.md file for details.