This project is a simple juggling simulator built with JavaScript and HTML Canvas. It includes a tutorial that guides users through various juggling techniques and patterns.
- Interactive Tutorial: Follow prompts to learn juggling patterns like the cascade, snake, shower, columns, and circular patterns.
- Customizable Throws: Experiment with different key presses to vary throw height, hand usage, and throw position.
- Realistic Physics: Simulates basic gravity and hand alternation to emulate the physics of juggling.
- Modern web browser with JavaScript support.
- Clone this repository:
git clone https://github.com/encse/juggling.git
- Open
index.html
in a web browser to start the simulation.
- Basic Throws:
- Press
S
for a left-hand throw andD
for a right-hand throw in the cascade pattern.
- Press
- Vary Height: Use
Q
,W
,E
, andR
for higher throws. - Outer Throws:
A
andF
produce wider throws for left and right hands, respectively. - Quick Throws:
X
andC
create low, fast throws for dynamic patterns. - CapsLock Mode: Turns on vertical mode, enabling one-handed juggling styles without holding Shift.
The tutorial introduces basic and advanced juggling techniques. You’ll follow prompts to learn and practice:
- The cascade (classic alternating hand throw)
- The shower (circular motion)
- One-handed patterns
- Columns and more complex formations with hand-specific keys.
Feel free to fork this repository, make improvements, and submit a pull request. Contributions to improve the tutorial, physics, or add new patterns are welcome!
Circus Vectors by Vecteezy Face Vectors by Vecteezy Hand Vectors by Vecteezy