mirror of
https://github.com/photonstorm/phaser
synced 2024-11-26 22:52:14 +00:00
Particle.color
has been removed as it's now calculated during rendering to allow for Camera alpha support.
This commit is contained in:
parent
bc40830f00
commit
c3cc4317dd
2 changed files with 1 additions and 17 deletions
|
@ -66,6 +66,7 @@ The process of managing scissors in the WebGLRenderer has been completely rewrit
|
||||||
* `Game.destroy` has a new boolean argument `noReturn`. If set it will remove all Core plugins when the game instance is destroyed. You cannot restart Phaser on the same web page after doing this, so only set it if you know you're done and don't need to run Phaser again.
|
* `Game.destroy` has a new boolean argument `noReturn`. If set it will remove all Core plugins when the game instance is destroyed. You cannot restart Phaser on the same web page after doing this, so only set it if you know you're done and don't need to run Phaser again.
|
||||||
* The `MouseManager` will no longer process its native events if the manager reference has been removed (i.e. you move the pointer as the game is destroying itself)
|
* The `MouseManager` will no longer process its native events if the manager reference has been removed (i.e. you move the pointer as the game is destroying itself)
|
||||||
* The `TouchManager` will no longer process its native events if the manager reference has been removed (i.e. you move the pointer as the game is destroying itself)
|
* The `TouchManager` will no longer process its native events if the manager reference has been removed (i.e. you move the pointer as the game is destroying itself)
|
||||||
|
* `Particle.color` has been removed as it's now calculated during rendering to allow for Camera alpha support.
|
||||||
|
|
||||||
### Game Config Resolution Specific Bug Fixes
|
### Game Config Resolution Specific Bug Fixes
|
||||||
|
|
||||||
|
|
|
@ -212,15 +212,6 @@ var Particle = new Class({
|
||||||
*/
|
*/
|
||||||
this.tint = 0xffffff;
|
this.tint = 0xffffff;
|
||||||
|
|
||||||
/**
|
|
||||||
* The full color of this Particle, computed from its alpha and tint.
|
|
||||||
*
|
|
||||||
* @name Phaser.GameObjects.Particles.Particle#color
|
|
||||||
* @type {integer}
|
|
||||||
* @since 3.0.0
|
|
||||||
*/
|
|
||||||
this.color = 16777215;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The lifespan of this Particle in ms.
|
* The lifespan of this Particle in ms.
|
||||||
*
|
*
|
||||||
|
@ -397,10 +388,6 @@ var Particle = new Class({
|
||||||
|
|
||||||
this.tint = emitter.tint.onEmit(this, 'tint');
|
this.tint = emitter.tint.onEmit(this, 'tint');
|
||||||
|
|
||||||
var ua = ((this.alpha * 255) | 0) & 0xFF;
|
|
||||||
|
|
||||||
this.color = ((ua << 24) | GetColor(this.tint)) >>> 0;
|
|
||||||
|
|
||||||
this.index = emitter.alive.length;
|
this.index = emitter.alive.length;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -571,10 +558,6 @@ var Particle = new Class({
|
||||||
|
|
||||||
this.tint = emitter.tint.onUpdate(this, 'tint', t, this.tint);
|
this.tint = emitter.tint.onUpdate(this, 'tint', t, this.tint);
|
||||||
|
|
||||||
var ua = ((this.alpha * 255) | 0) & 0xFF;
|
|
||||||
|
|
||||||
this.color = ((ua << 24) | GetColor(this.tint)) >>> 0;
|
|
||||||
|
|
||||||
this.lifeCurrent -= delta;
|
this.lifeCurrent -= delta;
|
||||||
|
|
||||||
return (this.lifeCurrent <= 0);
|
return (this.lifeCurrent <= 0);
|
||||||
|
|
Loading…
Reference in a new issue