Skip to content

LeticiaAires/Gravity-Glitch

Repository files navigation

Gravity Glitch

Introduction

Welcome to Gravity Glitch, an innovative project created by 7th-semester engineering students from École Nationale Supérieure de l'Électronique et de ses Applications (ENSEA). This project serves as a platform for hands-on learning in practical electronics, software development, project management, and teamwork.

Project Objective

Our primary goal is to develop an exciting game inspired by the popular Flappy Bird game, with a unique twist – an innovative controller. We've integrated an infrared sensor into the game, which measures the distance between the player's hand and the sensor. This inventive controller allows players to guide "Flappy" through the game, helping it navigate obstacles and accumulate points.

Getting Started

To get started with the project, follow these steps:

  1. Clone the repository to your local machine:

    git clone https://github.com/LeticiaAires/Gravity-Glitch.git
  2. Ensure you have the required dependencies installed.

    VSCode

    Python

    PIP

  3. How to play ?

    • Run the "main.py" file

    • Click on the "Play" button to choose your pseudo and choose your game mode !

  4. To launch the game without installing all modules and packages on your machine, create a virtual environment.

    • Create the environment 'my_env' inside the project directory :

      python -m venv my_environment
    • Activate the environment :

      my_environment/bin/activate
    • Install the required dependencies :

      pip install -r requirements.txt
    • Run the Game.py file and play !

    • Deactivate the environment :

      deactivate

Features

  • Flappy Bird-inspired gameplay with a unique controller.
  • Innovative use of an infrared sensor for hand tracking.
  • Challenging obstacles and addictive gameplay.
  • Project designed and implemented by talented engineering students.

Documentation

Here is an explanation of the game's structure :

The "main.py" file is the file to run to start the Game. Then, we come across a window called "MainMenu" displaying the menu of the game (with the settings, play, quit, credits and rules buttons). From there, we can :

  • go to the settings/rules/credits windows who are self explanatory
  • quit the game
  • go to the play window

If you choose to do the later, then you will come across a first window asking for your name (to associate your score with your pseudo). From there you can either go back to the menu or continue and go choose your game mode (History mode or alternative = a more complex version of the flappy bird). After that, by clicking on continue and pressing the space bar, you can start playing ! You have a "pause" button in the bottom left corner where you can go to the settings, see the best scores, restart, resume or quit the game.

For more detailed information about the project, you can refer to the code itself. We have included comprehensive comments and documentation within the codebase to help you understand how everything works.

SCREENSHOT

License

This project is licensed under the MIT License.

Acknowledgments

We would like to express our gratitude to our instructors, mentors, and everyone who supported us throughout this project. Your guidance and encouragement were invaluable in making this project a reality.

Collaborators

Foto Anthony Anthony

AnthonyDelille01
Foto Cassandre
Cassandre

CassandreChandelier
Foto Douay
Douay Nicolas

DBXYD
Foto Letícia Aires
Letícia Aires

LeticiaAires
Foto Mael
Mael Doublet

MaelDoublet
Foto Mantou
Mantou

Mansko09
Foto Mathieu
Mathieu Daubercies

MathieuDaubercies

Solène

salom0701
Foto Romain
Romain

Romain04G
Foto Zineb
Zineb

Ninevv

About

Flappy bird inspired game with an innovative infra red controller

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published