Skip to content

Commit 89c963c

Browse files
committed
Ignore consts
1 parent 0868d69 commit 89c963c

4 files changed

Lines changed: 41 additions & 12 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ being passed to the simulation. The default value is 1 to remain consistent with
3939
* The GamepadManager now extends EventEmitter directly, just like the KeyboardManager does.
4040
* The Gamepad Axis threshold has been increased from 0.05 to 0.1.
4141

42-
Also, my thanks to the following for helping with the Phaser 3 Examples, either by reporting errors or fixing them: @gabegordon @melissaelopez @samid737 @nbs @tgrajewski @pagesrichie
42+
Also, my thanks to the following for helping with the Phaser 3 Examples, either by reporting errors or fixing them: @gabegordon @melissaelopez @samid737 @nbs @tgrajewski @pagesrichie @hexus
4343

4444

4545

src/const.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,19 @@
44
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
55
*/
66

7+
/**
8+
* Global consts.
9+
*
10+
* @ignore
11+
*/
12+
713
var CONST = {
814

915
/**
1016
* Phaser Release Version
1117
*
1218
* @name Phaser.VERSION
19+
* @readOnly
1320
* @type {string}
1421
* @since 3.0.0
1522
*/
@@ -23,6 +30,7 @@ var CONST = {
2330
* AUTO Detect Renderer.
2431
*
2532
* @name Phaser.AUTO
33+
* @readOnly
2634
* @type {integer}
2735
* @since 3.0.0
2836
*/
@@ -32,6 +40,7 @@ var CONST = {
3240
* Canvas Renderer.
3341
*
3442
* @name Phaser.CANVAS
43+
* @readOnly
3544
* @type {integer}
3645
* @since 3.0.0
3746
*/
@@ -41,6 +50,7 @@ var CONST = {
4150
* WebGL Renderer.
4251
*
4352
* @name Phaser.WEBGL
53+
* @readOnly
4454
* @type {integer}
4555
* @since 3.0.0
4656
*/
@@ -50,6 +60,7 @@ var CONST = {
5060
* Headless Renderer.
5161
*
5262
* @name Phaser.HEADLESS
63+
* @readOnly
5364
* @type {integer}
5465
* @since 3.0.0
5566
*/
@@ -60,6 +71,7 @@ var CONST = {
6071
* to help you remember what the value is doing in your code.
6172
*
6273
* @name Phaser.FOREVER
74+
* @readOnly
6375
* @type {integer}
6476
* @since 3.0.0
6577
*/
@@ -69,6 +81,7 @@ var CONST = {
6981
* Direction constant.
7082
*
7183
* @name Phaser.NONE
84+
* @readOnly
7285
* @type {integer}
7386
* @since 3.0.0
7487
*/
@@ -78,6 +91,7 @@ var CONST = {
7891
* Direction constant.
7992
*
8093
* @name Phaser.UP
94+
* @readOnly
8195
* @type {integer}
8296
* @since 3.0.0
8397
*/
@@ -87,6 +101,7 @@ var CONST = {
87101
* Direction constant.
88102
*
89103
* @name Phaser.DOWN
104+
* @readOnly
90105
* @type {integer}
91106
* @since 3.0.0
92107
*/
@@ -96,6 +111,7 @@ var CONST = {
96111
* Direction constant.
97112
*
98113
* @name Phaser.LEFT
114+
* @readOnly
99115
* @type {integer}
100116
* @since 3.0.0
101117
*/
@@ -105,6 +121,7 @@ var CONST = {
105121
* Direction constant.
106122
*
107123
* @name Phaser.RIGHT
124+
* @readOnly
108125
* @type {integer}
109126
* @since 3.0.0
110127
*/

src/physics/arcade/const.js

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,16 @@
66

77
/**
88
* Arcade Physics consts.
9+
*
10+
* @ignore
911
*/
1012

11-
module.exports = {
13+
var CONST = {
1214

1315
/**
1416
* [description]
1517
*
1618
* @name Phaser.Physics.Arcade.DYNAMIC_BODY
17-
* @memberOf Phaser.Physics.Arcade
1819
* @readOnly
1920
* @type {number}
2021
* @since 3.0.0
@@ -25,7 +26,6 @@ module.exports = {
2526
* [description]
2627
*
2728
* @name Phaser.Physics.Arcade.STATIC_BODY
28-
* @memberOf Phaser.Physics.Arcade
2929
* @readOnly
3030
* @type {number}
3131
* @since 3.0.0
@@ -36,7 +36,6 @@ module.exports = {
3636
* [description]
3737
*
3838
* @name Phaser.Physics.Arcade.GROUP
39-
* @memberOf Phaser.Physics.Arcade
4039
* @readOnly
4140
* @type {number}
4241
* @since 3.0.0
@@ -47,7 +46,6 @@ module.exports = {
4746
* [description]
4847
*
4948
* @name Phaser.Physics.Arcade.TILEMAPLAYER
50-
* @memberOf Phaser.Physics.Arcade
5149
* @readOnly
5250
* @type {number}
5351
* @since 3.0.0
@@ -58,7 +56,6 @@ module.exports = {
5856
* [description]
5957
*
6058
* @name Phaser.Physics.Arcade.FACING_NONE
61-
* @memberOf Phaser.Physics.Arcade
6259
* @readOnly
6360
* @type {number}
6461
* @since 3.0.0
@@ -69,7 +66,6 @@ module.exports = {
6966
* [description]
7067
*
7168
* @name Phaser.Physics.Arcade.FACING_UP
72-
* @memberOf Phaser.Physics.Arcade
7369
* @readOnly
7470
* @type {number}
7571
* @since 3.0.0
@@ -80,7 +76,6 @@ module.exports = {
8076
* [description]
8177
*
8278
* @name Phaser.Physics.Arcade.FACING_DOWN
83-
* @memberOf Phaser.Physics.Arcade
8479
* @readOnly
8580
* @type {number}
8681
* @since 3.0.0
@@ -91,7 +86,6 @@ module.exports = {
9186
* [description]
9287
*
9388
* @name Phaser.Physics.Arcade.FACING_LEFT
94-
* @memberOf Phaser.Physics.Arcade
9589
* @readOnly
9690
* @type {number}
9791
* @since 3.0.0
@@ -102,11 +96,12 @@ module.exports = {
10296
* [description]
10397
*
10498
* @name Phaser.Physics.Arcade.FACING_RIGHT
105-
* @memberOf Phaser.Physics.Arcade
10699
* @readOnly
107100
* @type {number}
108101
* @since 3.0.0
109102
*/
110103
FACING_RIGHT: 14
111104

112105
};
106+
107+
module.exports = CONST;

src/scene/const.js

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,19 @@
44
* @license {@link https://github.com/photonstorm/phaser/blob/master/license.txt|MIT License}
55
*/
66

7+
/**
8+
* Scene consts.
9+
*
10+
* @ignore
11+
*/
712

8-
module.exports = {
13+
var CONST = {
914

1015
/**
1116
* Scene state.
1217
*
1318
* @name Phaser.Scenes.PENDING
19+
* @readOnly
1420
* @type {integer}
1521
* @since 3.0.0
1622
*/
@@ -20,6 +26,7 @@ module.exports = {
2026
* Scene state.
2127
*
2228
* @name Phaser.Scenes.INIT
29+
* @readOnly
2330
* @type {integer}
2431
* @since 3.0.0
2532
*/
@@ -29,6 +36,7 @@ module.exports = {
2936
* Scene state.
3037
*
3138
* @name Phaser.Scenes.START
39+
* @readOnly
3240
* @type {integer}
3341
* @since 3.0.0
3442
*/
@@ -38,6 +46,7 @@ module.exports = {
3846
* Scene state.
3947
*
4048
* @name Phaser.Scenes.LOADING
49+
* @readOnly
4150
* @type {integer}
4251
* @since 3.0.0
4352
*/
@@ -47,6 +56,7 @@ module.exports = {
4756
* Scene state.
4857
*
4958
* @name Phaser.Scenes.CREATING
59+
* @readOnly
5060
* @type {integer}
5161
* @since 3.0.0
5262
*/
@@ -56,6 +66,7 @@ module.exports = {
5666
* Scene state.
5767
*
5868
* @name Phaser.Scenes.RUNNING
69+
* @readOnly
5970
* @type {integer}
6071
* @since 3.0.0
6172
*/
@@ -65,6 +76,7 @@ module.exports = {
6576
* Scene state.
6677
*
6778
* @name Phaser.Scenes.PAUSED
79+
* @readOnly
6880
* @type {integer}
6981
* @since 3.0.0
7082
*/
@@ -74,6 +86,7 @@ module.exports = {
7486
* Scene state.
7587
*
7688
* @name Phaser.Scenes.SLEEPING
89+
* @readOnly
7790
* @type {integer}
7891
* @since 3.0.0
7992
*/
@@ -83,6 +96,7 @@ module.exports = {
8396
* Scene state.
8497
*
8598
* @name Phaser.Scenes.SHUTDOWN
99+
* @readOnly
86100
* @type {integer}
87101
* @since 3.0.0
88102
*/
@@ -92,9 +106,12 @@ module.exports = {
92106
* Scene state.
93107
*
94108
* @name Phaser.Scenes.DESTROYED
109+
* @readOnly
95110
* @type {integer}
96111
* @since 3.0.0
97112
*/
98113
DESTROYED: 9
99114

100115
};
116+
117+
module.exports = CONST;

0 commit comments

Comments
 (0)