Skip to content

shiftsayan/smh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

smh

smh, short for Shake My Head, is a desktop game created in PyGame and OpenCV with the objective to avoid hitting enemies by moving your head from side to side while bobbing to the song in the background. The enemies are procedurally generated so that the enemies appear according to the music and your head moves according to the beat.

This game was designed for Hack112 F17, one Carnegie Mellon University's largest hackathons, along with team members Komal Dewan, Kusha Maharshi, and Sebastien La Duca.

Dependancies

  • pygame
  • cv2
  • face_recognition
  • matplotlib
  • numpy
  • scipy
  • sobol

Installation

  1. Add a webcam picture of the player(s) into ./players/.
  2. To add a new song, add its .wav file to ./music/ and run processor.py replacing the song name on line 21.
  3. To play with the new song, run game.py replacing the song name on line 21.

NOTE: The process versions of songs Shape of You by Ed Sheeran and Spectre by Alan Walker are included in ./json/ but not the actual .wav file.

About

Shake My Head

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages