Tetris with Real-Time sound detection
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
gameplay
graphics
tmp
Makefile
README.md
sound.py

README.md

Rhythm Tetris

Tetris with pieces that drop to your claps! Or plays faster in a louder environment. Made with C++ / Python2.7

Python Modules:

  • PyAudio

Dependencies:

  • PortAudio
  • SDL2
  • SDL2-gfx

Ubuntu/Linux Mint:

sudo apt-get install portaudio19-dev
sudo apt-get install python-pyaudio
sudo apt-get install build-essential
sudo apt-get install libsdl2-dev
sudo apt-get install libsdl2-gfx-dev

To Use:

python sound.py
make
./Tetris

-Change isClapEnabled in main.cpp to play with claps enabled/disabled and isLoudFasterEnabled to play with environment loudness detection

GAME MODES:

  • Standard: Standard game of Tetris
  • With Clap: Clapping or making sudden noises drops the pieces
  • With Environment: Pieces drop faster depending on the loudness of the environment

Controls:

CLAP: Instantly Drop Piece

Left/Right Arrow Keys: Move Left/Right

Up Arrow Key: Rotate Piece

Down Array Key: Move Piece Down (faster than autodrop)

Space Key: Instantly Drop Piece

R Key: Resets the Game