Our game, FARNAMS FIGHT OFF, is a two-player fighter game based on the beloved Street Fighter classics, with an innovative twist. You can choose to play with normal keyboard controls with each player on either side of the keyboard. OR have one player play with ✨computer vision✨ while the other uses the keyboard.
NOTE: This project was created for educational purposes within Carnegie Mellon University and NOT intended for commercial use. Permission to sell, license, sublicense, publish, or distribute this software without permission from the authors is NOT granted unless it falls under Fair Use. No warranty is provided for copies of this software. Character assets are property of CAPCOM and the jump sound effect is property of Nintendo.
W, A, S, D --> up, left, down, right
E, R, T --> block, punch, kick
⬆, ⬅, ⬇, ▶ --> up, left, down, right
M, COMMA, PERIOD --> block, punch, kick
Please stand about 3-4 feet away from the webcam on your computer, face in the same direction as the character, and try to stay to in frame. The following inputs are pretty straightforward:
JUMP --> jump
PUNCH --> punch
LEAN FORWARD --> right
LEAN BACK --> left
CROUCH --> crouch
Make sure your Python has certificates installed, so tensorflow can make an http request to download the training model.
run main.py
run light.py # if you don't want computer vision
If packages are missing, install them manually:
pip install pygame
pip install pygame.locals
pip install tensorflow
pip install tensorflow_hub
pip install numpy
pip install cv2
pip install math
Rahim Malik (rahimm@andrew.cmu.edu)
Kenneth Sorrell (ksorrel2@andrew.cmu.edu)
James Tcheng (ztcheng@andrew.cmu.edu)
https://www.pygame.org/docs/
https://www.tensorflow.org/hub/tutorials/movenet
https://tfhub.dev/google/movenet/singlepose/lightning/4
https://www.fontspace.com/mad-homie-font-f75185
https://www.spriters-resource.com/fullview/117308/
https://www.spriters-resource.com/arcade/streetfighter2/sheet/60224/
https://pbs.twimg.com/media/EZHwgYUVcAAwpS3.jpg
https://www.myinstants.com/en/index/us/