Space-Shooter is a space shooter game controlled by facial gestures. Move your ship by squinting your eyes and fire by opening your mouth. The game leverages computer vision to detect facial expressions, offering a unique gameplay experience.
To run the game, you will need to install the following Python libraries:
cv2(OpenCV)mediapipenumpy
Follow these steps to get the game running on your local machine:
-
Clone the repository:
git clone https://github.com/daaroo8/Space-Shooter.git cd Space-Shooter -
Create a virtual environment (optional but recommended):
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the necessary libraries:
pip install opencv-python mediapipe numpy
-
Run the game:
python src/main.py # Or the appropriate file to start the game
- The game uses facial gestures for controls:
- Squint your eyes to move the spaceship.
- Open your mouth to shoot.
The game is a work in progress, and graphics will be improved in future updates.
This project is licensed under the MIT License - see the LICENSE file for details.