Ball pit: first demo using the HTML5 Device Orientation and Motion APIs

I made this little demo as an attempt to familiarize myself with the HTML5 Device Orientation and Device Motion APIs.  With a little javascript (and a LOT of physics/math help from http://www.flashmonkey.co.uk/simple-javascript-physics/), I made some balls roll around the screen based on device orientation.  Enjoy!  *Note: it's a lot more interesting when viewed on a capable mobile device.


Posted by ryan

Comments (0) Trackbacks (0)

No comments yet.

Leave a comment

No trackbacks yet.