Merge pull request #2878 from stoneman1/master

Fixes issue #2860
This commit is contained in:
Richard Davey 2016-11-23 15:53:40 +00:00 committed by GitHub
commit 20fabd23a0

View file

@ -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')