Skip to content

emilyjiayaoli/slash_n_bash

Repository files navigation

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.

Demo

Set Up and Run Instructions (computer vision control enabled)

Create, set up new virtual environment

python -m venv myvenv #create environment
  • Install external modules
  1. OpenCV: enables image processing and webcam access
  2. mediapipe: enables pose estimation model
  3. pyautogui: allows python script to access and controll keyboard
  4. PyGame
pip install opencv-python
pip install mediapipe
pip install pyautogui
pip install pygame
# 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
# 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:

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors