Skip to content

Commit 34eaadf

Browse files
authored
Merge pull request phaserjs#3061 from Twilrom/master
Minor fixes
2 parents b141ac4 + 7580288 commit 34eaadf

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

v3/src/gameobjects/emitter/ParticleEmitter.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -245,16 +245,16 @@ var ParticleEmitter = new Class({
245245

246246
explode: function (count)
247247
{
248-
if (!count) count = 100;
249-
this.emitParticle(100);
248+
if (!count) { count = 100; }
249+
this.emitParticle(count);
250250
},
251251

252252
setShape: function (shape)
253253
{
254254
this.emitShape = shape;
255255
},
256256

257-
emitParticle: function(count)
257+
emitParticle: function (count)
258258
{
259259
count = count || 1;
260260

@@ -305,7 +305,7 @@ var ParticleEmitter = new Class({
305305
particle.end.rotation = this.endAngle * Math.PI / 180;
306306
particle.color = (particle.color & 0x00FFFFFF) | (((this.startAlpha * 0xFF)|0) << 24);
307307
particle.index = this.alive.length;
308-
308+
309309
this.alive.push(particle);
310310
}
311311
return particle;

v3/src/gameobjects/sprite/Sprite.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ var Sprite = new Class({
4444
this.anims.update(time, delta);
4545
},
4646

47-
play: function (key, startFrame)
47+
play: function (key, ignoreIfPlaying, startFrame)
4848
{
49-
this.anims.play(key, startFrame);
49+
this.anims.play(key, ignoreIfPlaying, startFrame);
5050

5151
return this;
5252
},

0 commit comments

Comments
 (0)