You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/animation/Parser.js
+10-2Lines changed: 10 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -15,8 +15,8 @@ Phaser.Animation.Parser = {
15
15
* @method spriteSheet
16
16
* @param {Phaser.Game} game A reference to the currently running game.
17
17
* @param {String} key The Game.Cache asset key of the Sprite Sheet image.
18
-
* @param {Number} frameWidth The fixed width of each frame of the animation.
19
-
* @param {Number} frameHeight The fixed height of each frame of the animation.
18
+
* @param {Number} frameWidth The fixed width of each frame of the animation. If negative, indicates how many columns there are.
19
+
* @param {Number} frameHeight The fixed height of each frame of the animation. If negative, indicates how many rows there are.
20
20
* @param {Number} [frameMax=-1] The total number of animation frames to extact from the Sprite Sheet. The default value of -1 means "extract all frames".
21
21
* @return {Phaser.Animation.FrameData} A FrameData object containing the parsed frames.
0 commit comments