gravitris
Demonstrate the possibilities of the 2D Physics Engine Box2D with HTML5 technologies (WebGL & Canvas2D), based on a complete cross-platform application.
Demo
http://www.jeremybouny.fr/gravitris/
Features
- Based on a Tetris game (https://github.com/jbouny/asw-tetris)
- Full cross platform game (in browser)
- Use of a 2D physics engine
- Use of specific inputs
- Mouse / Keyboard and buttons on PC
- Gestures and buttons on smartphone
- Different viewers for a unique game
- Dynamic selection of the viewer
- A single web page
Libraries
The application is based on :
- box2d.js : Port of the Box2D physics engine to JS using Emscripten (https://github.com/kripken/box2d.js)
- JQuery 1.10.2 : Provide simple dom selector, events and callbacks (https://github.com/jquery/jquery)
- Hammer.JS v1.0.6dev (11/05/13) : Provide complete gesture recognition and abstraction of input (touch, mouse) (https://github.com/EightMedia/hammer.js/tree/v1.0.5)
- jQuery plugin for Hammer.JS v1.0.0 : Use of Hammer events based on JQuery selector (https://github.com/EightMedia/jquery.hammer.js)
- three.js r62 : Complete 3D library based on WebGL (https://github.com/mrdoob/three.js/)