Box2D and CreateJS quick start
This tutorial demonstrates an HTML5 game setup by using Box2D physics engine and CreateJS.
The following are the steps to complete this tutorial project. In case you just need the final code, please check the last step.
- Step 1 – Set up the project
- Step 2 – Game Structure
- Step 3 – Physics world
- Step 4 – Our own graphics (TODO)
Final screen
Here is the result of this project. It setup the basic code for Box2D and CreateJS woring together. 2 objects are created to demonstrate the static and dynamic objects creation.
Author
Thomas Mak (a.k.a. Makzan)
Makzan focuses on web development and game design. He has over 14 years of experience in building digital products. He has worked on real-time multiplayer interaction games, iOS applications, and rich interactive websites.
He has written three books and one video course on building a Flash virtual world and creating games with HTML5 and the latest web standards.
Library Used
- CreateJS: http://createjs.com
- Box2DWeb: https://code.google.com/p/box2dweb/