Integrating p2.js.

This commit is contained in:
photonstorm
2014-02-10 16:01:30 +00:00
parent 6f835d7696
commit 47e23096bd
12 changed files with 11071 additions and 18 deletions
+5 -2
View File
@@ -179,7 +179,8 @@ Phaser.Game = function (width, height, renderer, parent, state, transparent, ant
this.world = null;
/**
* @property {Phaser.Physics.PhysicsManager} physics - Reference to the physics manager.
* // {Phaser.Physics.Arcade.ArcadePhysics} physics - Reference to the physics manager.
* @property {Phaser.Physics.World} physics - Reference to the physics world.
* @default
*/
this.physics = null;
@@ -446,7 +447,8 @@ Phaser.Game.prototype = {
this.tweens = new Phaser.TweenManager(this);
this.input = new Phaser.Input(this);
this.sound = new Phaser.SoundManager(this);
this.physics = new Phaser.Physics.Arcade(this);
// this.physics = new Phaser.Physics.Arcade(this);
this.physics = new Phaser.Physics.World(this);
this.particles = new Phaser.Particles(this);
this.plugins = new Phaser.PluginManager(this, this);
this.net = new Phaser.Net(this);
@@ -614,6 +616,7 @@ Phaser.Game.prototype = {
this.tweens.update();
this.sound.update();
this.input.update();
this.physics.update();
this.state.update();
this.world.update();
this.particles.update();