Skip to content

About

Bend fire, water, earth and air with your hands through the webcam.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

ElementBender

Choose an element (fire, water, earth or air) and bend it with your hands.

The name is inspired by the benders of Avatar: The Last Airbender.

Download for Windows

On Windows, download the .exe and open it: nothing to install, you only need a webcam (or a mouse).

Built with

  • Python 3.11+
  • OpenCV: opens the webcam and shows the image
  • MediaPipe: finds your hands in the image
  • NumPy: draws the ASCII elements

Installation

Create a virtual environment and install the libraries:

Windows 11

python -m venv .venv
.venv\Scripts\pip install -r requirements.txt

macOS and Linux

python3 -m venv .venv
.venv/bin/pip install -r requirements.txt

Usage

Windows 11

.venv\Scripts\python main.py

macOS and Linux

.venv/bin/python main.py

Stand in front of the webcam. You can also play with the mouse.

Controls

Menu: show 1, 2, 3 or 4 fingers (or hover an element, or hold the keys 1-4) until it fills the screen. Click to enter right away.

Bending

Hand Mouse Fire Water Earth Air
Move Move Flame and trail Water whip Floating rock Wind whip
Fist Hold left button Charge a fireball Gather an orb Raise a wall Gather an air ball
Quick swing Quick drag Throw Throw Throw Throw
Five fingers 🖐️ Hold right button The screen catches fire Ice Lava Gust

Back to the menu: rest your hand on the arrow at the top left, click it, or press Esc. Press Q to quit.

About

Bend fire, water, earth and air with your hands through the webcam.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages