Galactic Shooter is a gesture-controlled space shooter game where players control their spaceship using hand movements. Built using Python, Pygame, and MediaPipe, this game provides an immersive, controller-free experience.
- Real-Time Hand Tracking: Uses MediaPipe to detect hand gestures.
- Interactive Gameplay: Control the ship using hand movements.
- Dynamic Movement: Move in any direction left, right, up, down.
- Power-Ups: Collect power-ups to boost speed.
- Score Tracking: Keep track of your score as you play.
- Immersive Sound: Audio responds to in-game events.
Ensure you have the following installed:
- Python 3.7 or above
- OpenCV (
cv2
) - Pygame
- MediaPipe
- Install Dependecies:
pip install pygame opencv-python mediapipe ##Note: If you encounter missing dependencies, install them using the following command: pip install pygame opencv-python mediapipe --break-system-packages
- Clone the repository:
git clone https://github.com/krish-gupta21/Galactic-Shooter cd Galactic-Shooter
- Give file permisions:
chmod +x galacticshooter.py
- Run the file:
python galacticshooter.py
- Start the Game:
- Run the script using the command:
python galacticshooter.py
.
- Run the script using the command:
- Control the Spaceship:
- Use your open palm to move ship 🚀 in any direction.
- Shoot:
- Join index and middle fingers to shoot the enemy.
- Collect Power-ups:
- Move your palm towards the powerups to collect them.
- Objective:
- Shoot as many enemy ships as possible and avoid crashing into them.
- Scoring:
- Earn points every time you shoot enemy ship.
- Game Over:
- The game ends if you run out of lives. Click restart button to restart the game.
Play in a well-lit environment for better hand detection accuracy.
Enjoy the game, and may your galactic adventure be filled with victories! 🚀