Skip to content

Repository files navigation

BallPit

BallPit allows linking between the edges of browser windows. Bouncy balls created 
on one window or 'space' will bounce into linked spaces.

"Universal Attraction" gives all balls a variable amount of gravity.

Create a ball by dragging or pressing K or L.
If you don't want to think about all of the keybindings, just press Z.

Keybindings:
space: play/pause
esc: toggle chat window
L: spawn (burst)
K: spawn (random)
X: clear
U: toggle universal attraction
[arrows]: tweak gravity
F: freeze
A: toggle accelerometer (only works on chrome on apple notebooks)
G: gravity=0
/: toggle edge-tabs
I: infect a random ball
[0-4]: select edge (same as clicking on it)
[: decrease friction
]: increase friction
Z: toggle the UI


TODO:
- Server:
-- improve logging, perhaps make a semi-public gui to visualize the logs
-- make routing more efficient
-- if not routing, make SOMETHING more efficient...

About

Social dynamic particle system in javascript (both client and server)

Resources

Stars

4 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages