Giter Club home page Giter Club logo

minimazegame's Introduction

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.

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.

minimazegame's People

Contributors

alexwafula avatar quantumfelonies avatar kimutaipeter avatar r-mbete avatar swansong101 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.