Squativa is an interactive fitness game that combines rhythm and squats. Players perform squats in sync with a rhythm pattern while maintaining proper form to score points. The game supports two players and uses a webcam for squat detection. Presented by Intania Hackathon
- Rhythm-Based Gameplay: Perform squats in sync with the rhythm pattern.
- Real-Time Feedback: Detects squat form and provides feedback on posture.
- Multiplayer Support: Two players can compete simultaneously.
- Custom Songs and Difficulties: Select songs and difficulty levels.
- Dynamic Graphics: Visual feedback with squat graphics and target zones.
- Python 3.10
- Pygame
- OpenCV
- MediaPipe
- Clone the repository:
git clone https://github.com/Toodmuk/squativa.git cd squativa - Install dependencies:
or
pip install -r requirements.txt
pip install mediapipe pip install opencv-python pip install pygame
- Run the game:
python main.py
- Use the menu to select a song and difficulty.
- Follow the rhythm and perform squats in front of the webcam.
game.py: Main game logic.screens.py: Handles different game screens (menu, countdown, game, results).opcv/squat_late.py: Squat detection using MediaPipe and OpenCV.utils.py: Utility functions for loading assets and rendering graphics.
- Menu Navigation: Use the mouse to select options.
- Quit: Press
QorEscto exit the game.
This project is for educational purposes only.