Racc-Moon is a 2D platformer built with Pygame, where your body movements control the player using a webcam with MediaPipe pose estimation.
- Camera-based controls: Move your character by shifting left or right in front of the camera.
- Jump physically: Jump in real life to make your character jump in-game. The higher the jump, the higher the raccoon goes!
- Dynamic platforms: Endless recycling platforms keep the gameplay continuous.
- Multiple player sprites: Different sprites for idle, moving left/right, and jumping.
- Python 3.7 or higher, and below Python 3.13.0
- Pygame
- OpenCV (
cv2) - MediaPipe
- NumPy
- Clone the repository (or download the files).
- Install dependencies:
pip install pygame opencv-python mediapipe numpyRun the game from the terminal with:
python main.pyMake sure your webcam is connected and accessible.
- Move left/right by shifting your body left/right.
- Jump by jumping in front of the camera.
- Avoid falling off platforms (you'll end up at the bottom) and aim for as high as you can, to the moon!
- Make sure your environment has good lighting for accurate camera detection.
- For best results, play in front of a plain background.
- Have fun!