Skip to content

Commit 321d7b0

Browse files
committed
Added 2.1.2 build files.
1 parent 9f24c08 commit 321d7b0

16 files changed

+7328
-1664
lines changed

build/custom/ninja.js

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@
2323
* Feel free to attempt any of the above and submit a Pull Request with your code! Be sure to include test cases proving they work.
2424
*
2525
* @class Phaser.Physics.Ninja
26-
* @classdesc Ninja Physics Constructor
2726
* @constructor
28-
* @param {Phaser.Game} game reference to the current game instance.
27+
* @param {Phaser.Game} game - reference to the current game instance.
2928
*/
3029
Phaser.Physics.Ninja = function (game) {
3130

@@ -337,8 +336,8 @@ Phaser.Physics.Ninja.prototype = {
337336
* The collideCallback is an optional function that is only called if two sprites collide. If a processCallback has been set then it needs to return true for collideCallback to be called.
338337
*
339338
* @method Phaser.Physics.Ninja#collide
340-
* @param {Phaser.Sprite|Phaser.Group|Phaser.Particles.Emitter|Phaser.Tilemap} object1 - The first object to check. Can be an instance of Phaser.Sprite, Phaser.Group, Phaser.Particles.Emitter, or Phaser.Tilemap.
341-
* @param {Phaser.Sprite|Phaser.Group|Phaser.Particles.Emitter|Phaser.Tilemap|array} object2 - The second object or array of objects to check. Can be Phaser.Sprite, Phaser.Group, Phaser.Particles.Emitter or Phaser.Tilemap.
339+
* @param {Phaser.Sprite|Phaser.Group|Phaser.Particles.Emitter|Phaser.TilemapLayer} object1 - The first object to check. Can be an instance of Phaser.Sprite, Phaser.Group, Phaser.Particles.Emitter, or Phaser.TilemapLayer.
340+
* @param {Phaser.Sprite|Phaser.Group|Phaser.Particles.Emitter|Phaser.TilemapLayer|array} object2 - The second object or array of objects to check. Can be Phaser.Sprite, Phaser.Group, Phaser.Particles.Emitter or Phaser.TilemapLayer.
342341
* @param {function} [collideCallback=null] - An optional callback function that is called if the objects collide. The two objects will be passed to this function in the same order in which you specified them.
343342
* @param {function} [processCallback=null] - A callback function that lets you perform additional checks against the two objects if they overlap. If this is set then collision will only happen if processCallback returns true. The two objects will be passed to this function in the same order in which you specified them.
344343
* @param {object} [callbackContext] - The context in which to run the callbacks.
@@ -374,8 +373,8 @@ Phaser.Physics.Ninja.prototype = {
374373
*
375374
* @method Phaser.Physics.Ninja#collideHandler
376375
* @private
377-
* @param {Phaser.Sprite|Phaser.Group|Phaser.Particles.Emitter|Phaser.Tilemap} object1 - The first object to check. Can be an instance of Phaser.Sprite, Phaser.Group, Phaser.Particles.Emitter, or Phaser.Tilemap.
378-
* @param {Phaser.Sprite|Phaser.Group|Phaser.Particles.Emitter|Phaser.Tilemap} object2 - The second object to check. Can be an instance of Phaser.Sprite, Phaser.Group, Phaser.Particles.Emitter or Phaser.Tilemap. Can also be an array of objects to check.
376+
* @param {Phaser.Sprite|Phaser.Group|Phaser.Particles.Emitter|Phaser.TilemapLayer} object1 - The first object to check. Can be an instance of Phaser.Sprite, Phaser.Group, Phaser.Particles.Emitter, or Phaser.TilemapLayer.
377+
* @param {Phaser.Sprite|Phaser.Group|Phaser.Particles.Emitter|Phaser.TilemapLayer} object2 - The second object to check. Can be an instance of Phaser.Sprite, Phaser.Group, Phaser.Particles.Emitter or Phaser.TilemapLayer. Can also be an array of objects to check.
379378
* @param {function} collideCallback - An optional callback function that is called if the objects collide. The two objects will be passed to this function in the same order in which you specified them.
380379
* @param {function} processCallback - A callback function that lets you perform additional checks against the two objects if they overlap. If this is set then collision will only happen if processCallback returns true. The two objects will be passed to this function in the same order in which you specified them.
381380
* @param {object} callbackContext - The context in which to run the callbacks.
@@ -619,7 +618,6 @@ Phaser.Physics.Ninja.prototype = {
619618
* the Sprite itself. For example you can set the velocity, bounce values etc all on the Body.
620619
*
621620
* @class Phaser.Physics.Ninja.Body
622-
* @classdesc Ninja Physics Body Constructor
623621
* @constructor
624622
* @param {Phaser.Physics.Ninja} system - The physics system this Body belongs to.
625623
* @param {Phaser.Sprite} sprite - The Sprite object this physics body belongs to.
@@ -1191,7 +1189,6 @@ Phaser.Physics.Ninja.Body.render = function(context, body, color, filled) {
11911189
* Note: This class could be massively optimised and reduced in size. I leave that challenge up to you.
11921190
*
11931191
* @class Phaser.Physics.Ninja.AABB
1194-
* @classdesc Arcade Physics Constructor
11951192
* @constructor
11961193
* @param {Phaser.Physics.Ninja.Body} body - The body that owns this shape.
11971194
* @param {number} x - The x coordinate to create this shape at.
@@ -2229,7 +2226,6 @@ Phaser.Physics.Ninja.AABB.prototype = {
22292226
* Note: This class could be massively optimised and reduced in size. I leave that challenge up to you.
22302227
*
22312228
* @class Phaser.Physics.Ninja.Tile
2232-
* @classdesc The Ninja Physics Tile class. Based on code by Metanet Software.
22332229
* @constructor
22342230
* @param {Phaser.Physics.Ninja.Body} body - The body that owns this shape.
22352231
* @param {number} x - The x coordinate to create this shape at.
@@ -2998,7 +2994,6 @@ Phaser.Physics.Ninja.Tile.TYPE_HALF = 30;
29982994
* Note: This class could be massively optimised and reduced in size. I leave that challenge up to you.
29992995
*
30002996
* @class Phaser.Physics.Ninja.Circle
3001-
* @classdesc Arcade Physics Constructor
30022997
* @constructor
30032998
* @param {Phaser.Physics.Ninja.Body} body - The body that owns this shape.
30042999
* @param {number} x - The x coordinate to create this shape at.

build/custom/ninja.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/custom/p2.js

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -13628,8 +13628,10 @@ p2.Body.prototype.parent = null;
1362813628
p2.Spring.prototype.parent = null;
1362913629

1363013630
/**
13631+
* This is your main access to the P2 Physics World.
13632+
* From here you can create materials, listen for events and add bodies into the physics simulation.
13633+
*
1363113634
* @class Phaser.Physics.P2
13632-
* @classdesc Physics World Constructor
1363313635
* @constructor
1363413636
* @param {Phaser.Game} game - Reference to the current game instance.
1363513637
* @param {object} [config] - Physics configuration object passed in from the game constructor.
@@ -15522,7 +15524,6 @@ Object.defineProperty(Phaser.Physics.P2.prototype, "total", {
1552215524
* during runtime (to remove parts, set masks, categories & sensor properties)
1552315525
*
1552415526
* @class Phaser.Physics.P2.FixtureList
15525-
* @classdesc Collection for generated P2 fixtures
1552615527
* @constructor
1552715528
* @param {Array} list - A list of fixtures (from Phaser.Physics.P2.Body#addPhaserPolygon)
1552815529
*/
@@ -15746,7 +15747,6 @@ Phaser.Physics.P2.FixtureList.prototype = {
1574615747
* A PointProxy is an internal class that allows for direct getter/setter style property access to Arrays and TypedArrays.
1574715748
*
1574815749
* @class Phaser.Physics.P2.PointProxy
15749-
* @classdesc PointProxy
1575015750
* @constructor
1575115751
* @param {Phaser.Physics.P2} world - A reference to the P2 World.
1575215752
* @param {any} destination - The object to bind to.
@@ -15850,7 +15850,6 @@ Object.defineProperty(Phaser.Physics.P2.PointProxy.prototype, "my", {
1585015850
* A InversePointProxy is an internal class that allows for direct getter/setter style property access to Arrays and TypedArrays but inverses the values on set.
1585115851
*
1585215852
* @class Phaser.Physics.P2.InversePointProxy
15853-
* @classdesc InversePointProxy
1585415853
* @constructor
1585515854
* @param {Phaser.Physics.P2} world - A reference to the P2 World.
1585615855
* @param {any} destination - The object to bind to.
@@ -15959,7 +15958,6 @@ Object.defineProperty(Phaser.Physics.P2.InversePointProxy.prototype, "my", {
1595915958
* Note: When a game object is given a P2 body it has its anchor x/y set to 0.5, so it becomes centered.
1596015959
*
1596115960
* @class Phaser.Physics.P2.Body
15962-
* @classdesc Physics Body Constructor
1596315961
* @constructor
1596415962
* @param {Phaser.Game} game - Game reference to the currently running game.
1596515963
* @param {Phaser.Sprite} [sprite] - The Sprite object this physics body belongs to.
@@ -17734,7 +17732,6 @@ Object.defineProperty(Phaser.Physics.P2.Body.prototype, "collideWorldBounds", {
1773417732
* So use sparingly and rarely (if ever) in production code.
1773517733
*
1773617734
* @class Phaser.Physics.P2.BodyDebug
17737-
* @classdesc Physics Body Debug Constructor
1773817735
* @constructor
1773917736
* @extends Phaser.Group
1774017737
* @param {Phaser.Game} game - Game reference to the currently running game.
@@ -18159,7 +18156,6 @@ Phaser.Utils.extend(Phaser.Physics.P2.BodyDebug.prototype, {
1815918156
* Creates a linear spring, connecting two bodies. A spring can have a resting length, a stiffness and damping.
1816018157
*
1816118158
* @class Phaser.Physics.P2.Spring
18162-
* @classdesc Physics Spring Constructor
1816318159
* @constructor
1816418160
* @param {Phaser.Physics.P2} world - A reference to the P2 World.
1816518161
* @param {p2.Body} bodyA - First connected body.
@@ -18237,7 +18233,6 @@ Phaser.Physics.P2.Spring.prototype.constructor = Phaser.Physics.P2.Spring;
1823718233
* Creates a rotational spring, connecting two bodies. A spring can have a resting length, a stiffness and damping.
1823818234
*
1823918235
* @class Phaser.Physics.P2.RotationalSpring
18240-
* @classdesc Physics Spring Constructor
1824118236
* @constructor
1824218237
* @param {Phaser.Physics.P2} world - A reference to the P2 World.
1824318238
* @param {p2.Body} bodyA - First connected body.
@@ -18291,11 +18286,13 @@ Phaser.Physics.P2.Spring.prototype.constructor = Phaser.Physics.P2.Spring;
1829118286
*/
1829218287

1829318288
/**
18289+
* A P2 Material.
18290+
*
1829418291
* \o/ ~ "Because I'm a Material girl"
1829518292
*
1829618293
* @class Phaser.Physics.P2.Material
18297-
* @classdesc Physics Material Constructor
1829818294
* @constructor
18295+
* @param {string} name - The user defined name given to this Material.
1829918296
*/
1830018297
Phaser.Physics.P2.Material = function (name) {
1830118298

@@ -18322,11 +18319,10 @@ Phaser.Physics.P2.Material.prototype.constructor = Phaser.Physics.P2.Material;
1832218319
* Defines a physics material
1832318320
*
1832418321
* @class Phaser.Physics.P2.ContactMaterial
18325-
* @classdesc Physics ContactMaterial Constructor
1832618322
* @constructor
18327-
* @param {Phaser.Physics.P2.Material} materialA
18328-
* @param {Phaser.Physics.P2.Material} materialB
18329-
* @param {object} [options]
18323+
* @param {Phaser.Physics.P2.Material} materialA - First material participating in the contact material.
18324+
* @param {Phaser.Physics.P2.Material} materialB - Second material participating in the contact material.
18325+
* @param {object} [options] - Additional configuration options.
1833018326
*/
1833118327
Phaser.Physics.P2.ContactMaterial = function (materialA, materialB, options) {
1833218328

@@ -18339,7 +18335,7 @@ Phaser.Physics.P2.ContactMaterial = function (materialA, materialB, options) {
1833918335
*/
1834018336

1834118337
/**
18342-
* @property {Phaser.Physics.P2.Material} materialB - First second participating in the contact material.
18338+
* @property {Phaser.Physics.P2.Material} materialB - Second material participating in the contact material.
1834318339
*/
1834418340

1834518341
/**
@@ -18387,8 +18383,8 @@ Phaser.Physics.P2.ContactMaterial.prototype.constructor = Phaser.Physics.P2.Cont
1838718383
* Collision Group
1838818384
*
1838918385
* @class Phaser.Physics.P2.CollisionGroup
18390-
* @classdesc Physics Collision Group Constructor
1839118386
* @constructor
18387+
* @param {number} bitmask - The CollisionGroup bitmask.
1839218388
*/
1839318389
Phaser.Physics.P2.CollisionGroup = function (bitmask) {
1839418390

@@ -18409,7 +18405,6 @@ Phaser.Physics.P2.CollisionGroup = function (bitmask) {
1840918405
* A constraint that tries to keep the distance between two bodies constant.
1841018406
*
1841118407
* @class Phaser.Physics.P2.DistanceConstraint
18412-
* @classdesc Physics DistanceConstraint Constructor
1841318408
* @constructor
1841418409
* @param {Phaser.Physics.P2} world - A reference to the P2 World.
1841518410
* @param {p2.Body} bodyA - First connected body.
@@ -18460,7 +18455,6 @@ Phaser.Physics.P2.DistanceConstraint.prototype.constructor = Phaser.Physics.P2.D
1846018455
* Connects two bodies at given offset points, letting them rotate relative to each other around this point.
1846118456
*
1846218457
* @class Phaser.Physics.P2.GearConstraint
18463-
* @classdesc Physics GearConstraint Constructor
1846418458
* @constructor
1846518459
* @param {Phaser.Physics.P2} world - A reference to the P2 World.
1846618460
* @param {p2.Body} bodyA - First connected body.
@@ -18502,7 +18496,6 @@ Phaser.Physics.P2.GearConstraint.prototype.constructor = Phaser.Physics.P2.GearC
1850218496
* Locks the relative position between two bodies.
1850318497
*
1850418498
* @class Phaser.Physics.P2.LockConstraint
18505-
* @classdesc Physics LockConstraint Constructor
1850618499
* @constructor
1850718500
* @param {Phaser.Physics.P2} world - A reference to the P2 World.
1850818501
* @param {p2.Body} bodyA - First connected body.
@@ -18548,7 +18541,6 @@ Phaser.Physics.P2.LockConstraint.prototype.constructor = Phaser.Physics.P2.LockC
1854818541
* Connects two bodies at given offset points, letting them rotate relative to each other around this point.
1854918542
*
1855018543
* @class Phaser.Physics.P2.PrismaticConstraint
18551-
* @classdesc Physics PrismaticConstraint Constructor
1855218544
* @constructor
1855318545
* @param {Phaser.Physics.P2} world - A reference to the P2 World.
1855418546
* @param {p2.Body} bodyA - First connected body.
@@ -18600,7 +18592,6 @@ Phaser.Physics.P2.PrismaticConstraint.prototype.constructor = Phaser.Physics.P2.
1860018592
* The pivot points are given in world (pixel) coordinates.
1860118593
*
1860218594
* @class Phaser.Physics.P2.RevoluteConstraint
18603-
* @classdesc Physics RevoluteConstraint Constructor
1860418595
* @constructor
1860518596
* @param {Phaser.Physics.P2} world - A reference to the P2 World.
1860618597
* @param {p2.Body} bodyA - First connected body.

build/custom/p2.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)