mirror of
https://github.com/photonstorm/phaser
synced 2024-11-15 01:17:43 +00:00
Call the new emit and death zone emitter methods.
This commit is contained in:
parent
4bd740acb4
commit
77ec0b55b8
1 changed files with 3 additions and 6 deletions
|
@ -388,11 +388,8 @@ var Particle = new Class({
|
|||
throw new Error('Particle has no texture frame');
|
||||
}
|
||||
|
||||
if (emitter.emitZone)
|
||||
{
|
||||
// Updates particle.x and particle.y during this call
|
||||
emitter.emitZone.getPoint(this);
|
||||
}
|
||||
// Updates particle.x and particle.y during this call
|
||||
emitter.getEmitZone(this);
|
||||
|
||||
if (x === undefined)
|
||||
{
|
||||
|
@ -634,7 +631,7 @@ var Particle = new Class({
|
|||
this.checkBounds(emitter);
|
||||
}
|
||||
|
||||
if (emitter.deathZone && emitter.deathZone.willKill(this))
|
||||
if (emitter.getDeathZone(this))
|
||||
{
|
||||
this.lifeCurrent = 0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue