Skip to content

Commit 4f98628

Browse files
(v2) Get the last changes from Phaser 3.16.
1 parent 93941c5 commit 4f98628

File tree

372 files changed

+45011
-32481
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

372 files changed

+45011
-32481
lines changed

source/v2/phasereditor/phasereditor.resources.phaser.code/phaser-master/dist/phaser-arcade-physics.js

Lines changed: 3425 additions & 2913 deletions
Large diffs are not rendered by default.

source/v2/phasereditor/phasereditor.resources.phaser.code/phaser-master/dist/phaser-arcade-physics.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.

source/v2/phasereditor/phasereditor.resources.phaser.code/phaser-master/dist/phaser-facebook-instant-games.js

Lines changed: 3335 additions & 2823 deletions
Large diffs are not rendered by default.

source/v2/phasereditor/phasereditor.resources.phaser.code/phaser-master/dist/phaser-facebook-instant-games.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.

source/v2/phasereditor/phasereditor.resources.phaser.code/phaser-master/dist/phaser.js

Lines changed: 3639 additions & 3127 deletions
Large diffs are not rendered by default.

source/v2/phasereditor/phasereditor.resources.phaser.code/phaser-master/dist/phaser.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.

source/v2/phasereditor/phasereditor.resources.phaser.code/phaser-master/src/animations/Animation.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ var GetValue = require('../utils/object/GetValue');
6464
* So multiple Game Objects can have playheads all pointing to this one Animation instance.
6565
*
6666
* @class Animation
67-
* @memberOf Phaser.Animations
67+
* @memberof Phaser.Animations
6868
* @constructor
6969
* @since 3.0.0
7070
*
@@ -803,7 +803,7 @@ var Animation = new Class({
803803
},
804804

805805
/**
806-
* [description]
806+
* Sets the texture frame the animation uses for rendering.
807807
*
808808
* @method Phaser.Animations.Animation#setFrame
809809
* @since 3.0.0
@@ -824,7 +824,7 @@ var Animation = new Class({
824824
},
825825

826826
/**
827-
* [description]
827+
* Converts the animation data to JSON.
828828
*
829829
* @method Phaser.Animations.Animation#toJSON
830830
* @since 3.0.0

source/v2/phasereditor/phasereditor.resources.phaser.code/phaser-master/src/animations/AnimationFrame.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ var Class = require('../utils/Class');
2525
* AnimationFrames are generated automatically by the Animation class.
2626
*
2727
* @class AnimationFrame
28-
* @memberOf Phaser.Animations
28+
* @memberof Phaser.Animations
2929
* @constructor
3030
* @since 3.0.0
3131
*
@@ -82,7 +82,7 @@ var AnimationFrame = new Class({
8282
* @name Phaser.Animations.AnimationFrame#isFirst
8383
* @type {boolean}
8484
* @default false
85-
* @readOnly
85+
* @readonly
8686
* @since 3.0.0
8787
*/
8888
this.isFirst = false;
@@ -93,7 +93,7 @@ var AnimationFrame = new Class({
9393
* @name Phaser.Animations.AnimationFrame#isLast
9494
* @type {boolean}
9595
* @default false
96-
* @readOnly
96+
* @readonly
9797
* @since 3.0.0
9898
*/
9999
this.isLast = false;
@@ -104,7 +104,7 @@ var AnimationFrame = new Class({
104104
* @name Phaser.Animations.AnimationFrame#prevFrame
105105
* @type {?Phaser.Animations.AnimationFrame}
106106
* @default null
107-
* @readOnly
107+
* @readonly
108108
* @since 3.0.0
109109
*/
110110
this.prevFrame = null;
@@ -115,7 +115,7 @@ var AnimationFrame = new Class({
115115
* @name Phaser.Animations.AnimationFrame#nextFrame
116116
* @type {?Phaser.Animations.AnimationFrame}
117117
* @default null
118-
* @readOnly
118+
* @readonly
119119
* @since 3.0.0
120120
*/
121121
this.nextFrame = null;
@@ -138,7 +138,7 @@ var AnimationFrame = new Class({
138138
* @name Phaser.Animations.AnimationFrame#progress
139139
* @type {number}
140140
* @default 0
141-
* @readOnly
141+
* @readonly
142142
* @since 3.0.0
143143
*/
144144
this.progress = 0;

source/v2/phasereditor/phasereditor.resources.phaser.code/phaser-master/src/animations/AnimationManager.js

Lines changed: 27 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ var Pad = require('../utils/string/Pad');
1414
/**
1515
* @typedef {object} JSONAnimationManager
1616
*
17-
* @property {JSONAnimation[]} anims - [description]
18-
* @property {number} globalTimeScale - [description]
17+
* @property {JSONAnimation[]} anims - An array of all Animations added to the Animation Manager.
18+
* @property {number} globalTimeScale - The global time scale of the Animation Manager.
1919
*/
2020

2121
/**
@@ -30,7 +30,7 @@ var Pad = require('../utils/string/Pad');
3030
*
3131
* @class AnimationManager
3232
* @extends Phaser.Events.EventEmitter
33-
* @memberOf Phaser.Animations
33+
* @memberof Phaser.Animations
3434
* @constructor
3535
* @since 3.0.0
3636
*
@@ -67,7 +67,9 @@ var AnimationManager = new Class({
6767
this.textureManager = null;
6868

6969
/**
70-
* [description]
70+
* The global time scale of the Animation Manager.
71+
*
72+
* This scales the time delta between two frames, thus influencing the speed of time for the Animation Manager.
7173
*
7274
* @name Phaser.Animations.AnimationManager#globalTimeScale
7375
* @type {number}
@@ -77,7 +79,9 @@ var AnimationManager = new Class({
7779
this.globalTimeScale = 1;
7880

7981
/**
80-
* [description]
82+
* The Animations registered in the Animation Manager.
83+
*
84+
* This map should be modified with the {@link #add} and {@link #create} methods of the Animation Manager.
8185
*
8286
* @name Phaser.Animations.AnimationManager#anims
8387
* @type {Phaser.Structs.Map.<string, Phaser.Animations.Animation>}
@@ -87,7 +91,7 @@ var AnimationManager = new Class({
8791
this.anims = new CustomMap();
8892

8993
/**
90-
* [description]
94+
* Whether the Animation Manager is paused along with all of its Animations.
9195
*
9296
* @name Phaser.Animations.AnimationManager#paused
9397
* @type {boolean}
@@ -97,7 +101,7 @@ var AnimationManager = new Class({
97101
this.paused = false;
98102

99103
/**
100-
* [description]
104+
* The name of this Animation Manager.
101105
*
102106
* @name Phaser.Animations.AnimationManager#name
103107
* @type {string}
@@ -109,7 +113,7 @@ var AnimationManager = new Class({
109113
},
110114

111115
/**
112-
* [description]
116+
* Registers event listeners after the Game boots.
113117
*
114118
* @method Phaser.Animations.AnimationManager#boot
115119
* @since 3.0.0
@@ -122,14 +126,14 @@ var AnimationManager = new Class({
122126
},
123127

124128
/**
125-
* [description]
129+
* Adds an existing Animation to the Animation Manager.
126130
*
127131
* @method Phaser.Animations.AnimationManager#add
128132
* @fires AddAnimationEvent
129133
* @since 3.0.0
130134
*
131-
* @param {string} key - [description]
132-
* @param {Phaser.Animations.Animation} animation - [description]
135+
* @param {string} key - The key under which the Animation should be added. The Animation will be updated with it. Must be unique.
136+
* @param {Phaser.Animations.Animation} animation - The Animation which should be added to the Animation Manager.
133137
*
134138
* @return {Phaser.Animations.AnimationManager} This Animation Manager.
135139
*/
@@ -151,13 +155,13 @@ var AnimationManager = new Class({
151155
},
152156

153157
/**
154-
* [description]
158+
* Creates a new Animation and adds it to the Animation Manager.
155159
*
156160
* @method Phaser.Animations.AnimationManager#create
157161
* @fires AddAnimationEvent
158162
* @since 3.0.0
159163
*
160-
* @param {AnimationConfig} config - [description]
164+
* @param {AnimationConfig} config - The configuration settings for the Animation.
161165
*
162166
* @return {Phaser.Animations.Animation} The Animation that was created.
163167
*/
@@ -181,12 +185,12 @@ var AnimationManager = new Class({
181185
},
182186

183187
/**
184-
* [description]
188+
* Loads this Animation Manager's Animations and settings from a JSON object.
185189
*
186190
* @method Phaser.Animations.AnimationManager#fromJSON
187191
* @since 3.0.0
188192
*
189-
* @param {(string|JSONAnimationManager|JSONAnimation)} data - [description]
193+
* @param {(string|JSONAnimationManager|JSONAnimation)} data - The JSON object to parse.
190194
* @param {boolean} [clearCurrentAnimations=false] - If set to `true`, the current animations will be removed (`anims.clear()`). If set to `false` (default), the animations in `data` will be added.
191195
*
192196
* @return {Phaser.Animations.Animation[]} An array containing all of the Animation objects that were created as a result of this call.
@@ -232,19 +236,17 @@ var AnimationManager = new Class({
232236
/**
233237
* @typedef {object} GenerateFrameNamesConfig
234238
*
235-
* @property {string} [prefix=''] - [description]
236-
* @property {integer} [start=0] - [description]
237-
* @property {integer} [end=0] - [description]
238-
* @property {string} [suffix=''] - [description]
239-
* @property {integer} [zeroPad=0] - [description]
240-
* @property {AnimationFrameConfig[]} [outputArray=[]] - [description]
241-
* @property {boolean} [frames=false] - [description]
239+
* @property {string} [prefix=''] - The string to append to every resulting frame name if using a range or an array of `frames`.
240+
* @property {integer} [start=0] - If `frames` is not provided, the number of the first frame to return.
241+
* @property {integer} [end=0] - If `frames` is not provided, the number of the last frame to return.
242+
* @property {string} [suffix=''] - The string to append to every resulting frame name if using a range or an array of `frames`.
243+
* @property {integer} [zeroPad=0] - The minimum expected lengths of each resulting frame's number. Numbers will be left-padded with zeroes until they are this long, then prepended and appended to create the resulting frame name.
244+
* @property {AnimationFrameConfig[]} [outputArray=[]] - The array to append the created configuration objects to.
245+
* @property {boolean} [frames=false] - If provided as an array, the range defined by `start` and `end` will be ignored and these frame numbers will be used.
242246
*/
243247

244248
/**
245-
* Generate an array of {@link AnimationFrameConfig} objects from a texture key and configuration object.
246-
*
247-
* Generates objects with string frame names, as configured by the given {@link AnimationFrameConfig}.
249+
* [description]
248250
*
249251
* @method Phaser.Animations.AnimationManager#generateFrameNames
250252
* @since 3.0.0

0 commit comments

Comments
 (0)