Skip to content

Toodmuk/squativa

Repository files navigation

Squativa - the Squat Game

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

Features

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

Requirements

  • Python 3.10
  • Pygame
  • OpenCV
  • MediaPipe

Installation

  1. Clone the repository:
    git clone https://github.com/Toodmuk/squativa.git
    cd squativa
  2. Install dependencies:
    pip install -r requirements.txt
    or
    pip install mediapipe
    pip install opencv-python
    pip install pygame

Usage

  1. Run the game:
    python main.py
  2. Use the menu to select a song and difficulty.
  3. Follow the rhythm and perform squats in front of the webcam.

Folder Structure

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

Controls

  • Menu Navigation: Use the mouse to select options.
  • Quit: Press Q or Esc to exit the game.

License

This project is for educational purposes only.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages