mirror of
https://github.com/photonstorm/phaser
synced 2024-11-10 15:14:47 +00:00
commit
20fabd23a0
1 changed files with 4 additions and 0 deletions
|
@ -28,6 +28,10 @@ Phaser.AnimationParser = {
|
|||
*/
|
||||
spriteSheet: function (game, key, frameWidth, frameHeight, frameMax, margin, spacing, skipFrames) {
|
||||
|
||||
if (frameMax === undefined) { frameMax = -1; }
|
||||
if (margin === undefined) { margin = 0; }
|
||||
if (spacing === undefined) { spacing = 0; }
|
||||
|
||||
var img = key;
|
||||
|
||||
if (typeof key === 'string')
|
||||
|
|
Loading…
Reference in a new issue