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.
On Windows, download the .exe and open it: nothing to install, you only need a webcam (or a mouse).
- Python 3.11+
- OpenCV: opens the webcam and shows the image
- MediaPipe: finds your hands in the image
- NumPy: draws the ASCII elements
Create a virtual environment and install the libraries:
Windows 11
python -m venv .venv
.venv\Scripts\pip install -r requirements.txtmacOS and Linux
python3 -m venv .venv
.venv/bin/pip install -r requirements.txtWindows 11
.venv\Scripts\python main.pymacOS and Linux
.venv/bin/python main.pyStand in front of the webcam. You can also play with the mouse.
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.