Skip to content

Commit 0a456d8

Browse files
committed
remove physics loader flags in p2 world, fix naming in loader
1 parent b01ad96 commit 0a456d8

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

src/loader/Loader.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,13 @@ Phaser.Loader.TEXTURE_ATLAS_XML_STARLING = 2;
138138
* @constant
139139
* @type {number}
140140
*/
141-
Phaser.Loader.PHYSICS_LIME_CORONA = 3;
141+
Phaser.Loader.PHYSICS_LIME_CORONA_JSON = 3;
142+
143+
/**
144+
* @constant
145+
* @type {number}
146+
*/
147+
Phaser.Loader.PHYSICS_PHASER_JSON = 4;
142148

143149
Phaser.Loader.prototype = {
144150

@@ -576,7 +582,7 @@ Phaser.Loader.prototype = {
576582

577583
if (typeof dataURL === "undefined") { dataURL = null; }
578584
if (typeof jsonData === "undefined") { jsonData = null; }
579-
if (typeof format === "undefined") { format = Phaser.Physics.LIME_CORONA_JSON; }
585+
if (typeof format === "undefined") { format = Phaser.Loader.PHYSICS_LIME_CORONA_JSON; }
580586

581587
if (dataURL == null && jsonData == null)
582588
{

src/physics/p2/World.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -170,12 +170,6 @@ Phaser.Physics.P2 = function (game, config) {
170170

171171
};
172172

173-
/**
174-
* @const
175-
* @type {number}
176-
*/
177-
Phaser.Physics.P2.LIME_CORONA_JSON = 0;
178-
179173
Phaser.Physics.P2.prototype = {
180174

181175
/**

0 commit comments

Comments
 (0)