Skip to content

A gesture-controlled space shooter game where players use hand movements to control their spaceship. Built using Python, Pygame, and MediaPipe, this game offers an immersive experience with intuitive controls, dynamic enemy movement, and power-ups.

Notifications You must be signed in to change notification settings

krish-gupta21/Galactic-Shooter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 

Repository files navigation

Galactic Shooter

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.

Features

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

Installation

Prerequisites

Ensure you have the following installed:

  • Python 3.7 or above
  • OpenCV (cv2)
  • Pygame
  • MediaPipe

Steps

  1. 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
    
  2. Clone the repository:
    git clone https://github.com/krish-gupta21/Galactic-Shooter
    cd Galactic-Shooter
    
  3. Give file permisions:
    chmod +x galacticshooter.py
    
  4. Run the file:
    python galacticshooter.py
    

🎮 Game Manual

How to Play:

  1. Start the Game:
    • Run the script using the command: python galacticshooter.py.
  2. Control the Spaceship:
    • Use your open palm to move ship 🚀 in any direction.
  3. Shoot:
    • Join index and middle fingers to shoot the enemy.
  4. Collect Power-ups:
    • Move your palm towards the powerups to collect them.
  5. Objective:
    • Shoot as many enemy ships as possible and avoid crashing into them.
  6. Scoring:
    • Earn points every time you shoot enemy ship.
  7. Game Over:
    • The game ends if you run out of lives. Click restart button to restart the game.

📝 Tip:

Play in a well-lit environment for better hand detection accuracy.


Enjoy the game, and may your galactic adventure be filled with victories! 🚀

About

A gesture-controlled space shooter game where players use hand movements to control their spaceship. Built using Python, Pygame, and MediaPipe, this game offers an immersive experience with intuitive controls, dynamic enemy movement, and power-ups.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages