Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 646 Bytes

README.md

File metadata and controls

17 lines (13 loc) · 646 Bytes

bouncy-balls

Easily decorate an HTML canvas with a bouncy ball mini-game.

Just include the script into a page and decorate a canvas with the bouncy-ball id...

<canvas id="bouncy-ball"></canvas>
<script src="BouncyBallGame.js"></script>

... then click on the canvas to get going. See the code for a more complete example which is on display here.

Wishlist

  1. Make the game resistant to canvas resizing.
  2. Respect ball radius in boundary collisions.
  3. Scale the ball speed to better match canvas size?
  4. Ball-on-ball collisions?!?!