Welcome
Slash n Bash is a boss fight game where the controls are your body movements - a slash in real life translates to a slash in game, a giant down attack in real life is a giant down attack in the game. Wield a literal sword to play.
Slash n Bash comes to life with real-time computer vision pose estimation, efficiency optimized animations, and customizable fighting algorithm.
Set Up and Run Instructions (computer vision control enabled)
Create, set up new virtual environment
python -m venv myvenv #create environment
- Install external modules
- OpenCV: enables image processing and webcam access
- mediapipe: enables pose estimation model
- pyautogui: allows python script to access and controll keyboard
- PyGame
pip install opencv-python
pip install mediapipe
pip install pyautogui
pip install pygame
- Make sure tikinter is downloaded from cmu_112_graphics.py on the CMU 15-112 website.
# For macs
import sys
print(f"sudo '{sys.executable}' -m pip install pillow")
print(f"sudo '{sys.executable}' -m pip install requests")
# Refer to link above for compatibilities on other machines
- Run run.py
python3 run.py
Set Up and Run Instructions (computer vision control disabled)
pip install pygame
- Make sure tikinter is downloaded from cmu_112_graphics.py on the CMU 15-112 website.
# For macs
import sys
print(f"sudo '{sys.executable}' -m pip install pillow")
print(f"sudo '{sys.executable}' -m pip install requests")
# Refer to link above for compatibilities on other machines
- Run main.py
python3 main.py
Citations
Open source graphics:
Music:



