Polygon Decomposition

This Example is using the Phaser Box2D Plugin.


/*
 *    Please wait, loading source from GitHub ...
 *
 *
 *                       /\_/\
 *                      / - - \
 *                     <_  X  _>  /\_/\
 *                     /       \ <_o_o_>
 *                    <_)_U_U_(_> 
 *
 */

View the code for this example:
//github.com/photonstorm/phaser-examples/blob/master/examples/box2d/polygon decomposition.js.

Add the full power of Box2D Physics to your games
  • User Friendly API
  • Fully Documented
  • Getting Started Guide
  • 90 Code Examples
  • Ropes, Springs, Joints and More
Buy Now
$25 was $50

Download

Get the source and assets for every Phaser example from the Phaser Examples GitHub repository.

With literally hundreds of pieces of source code this is an invaluable resource to have available locally.

Online Code Editor

The Phaser Sandbox allows you to code games in your browser without having to download or install anything.

The powerful editor features Phaser code assists, JavaScript snippets and lots of the features you've come to love in editors like Sublime and Brackets.