Skip to content

This a game development solution for our Computer Graphics project where The player must navigate through a maze using only light to guide them. the player can use reflective surfaces to redirect light and reveal the path through the maze.

Notifications You must be signed in to change notification settings

alexwafula/glowinthedark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Glow in the Dark Mini Game

This project features the use of python language and provided libraries to create a mini game where the sprite navigates through a dark maze.

Functionalities

  • 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.

How to Play

  1. Clone the project to your local machine:

    git clone https://github.com/your-username/glow-in-the-dark-maze.git
  2. Navigate to the project directory:

    cd glow-in-the-dark-maze
  3. Run main.py to start the game.

  4. Register your name and age.

  5. Select a character.

  6. Navigate through the maze using arrow keys.

  7. Collect treasures and avoid enemies.

  8. Reach the exit door to progress to the next level.

  9. Game over conditions: Colliding with enemies or collecting all treasures.

Levels

The game currently has three levels with increasing difficulty. Each level introduces new challenges and maze layouts.

Snapshots

Screenshot 2023-12-01 144621 Screenshot 2023-12-01 144636

Dependencies

Python 3.x

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

Pygame

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

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.

Turtle sound libraries

We used mixer from the pygame library and the code used is

import pygame
pygame.init()
pygame.mixer.init()

Credits

License

This project is licensed under the [LICENSE NAME] - see the LICENSE.md file for details.

About

This a game development solution for our Computer Graphics project where The player must navigate through a maze using only light to guide them. the player can use reflective surfaces to redirect light and reveal the path through the maze.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published