Use HTML5 techniques to create a 'bouncing ball' that has variable force applied by user input. It must work in desktop Chrome and in-browser on a mobile device (android and/or iOS, doesn't matter if it's phone or tablet).
- Vanilla JavaScript combined with CSS3 Transitions.
- Vanilla JavaScript and Canvas2D.
- JavaScript and an external HTML5 library; LimeJS
The last two solutions contain extra stuff: multi ball, ball to ball collision, user draggable balls.
download the repository as a zip (and unpack) or via git
run menu.html in Chrome
use the menu to navigate the solutions
- Get the files as described above
- for the first 2 solutions (CSSTransition and Canvas2D) you can just edit the files as you wish, and check the results in your browser. The last solution is more complex because LimeJS has a compiler and relies on a few extra libraries that are not in this repo:
Nikki Koole - 2013.
license: GNU GPL.
I will probably take this repository down after it has been checked.
Wouldn't want to spoil the fun for other candidates!