mirror of
https://github.com/photonstorm/phaser
synced 2024-11-10 15:14:47 +00:00
Emitter.minParticleScale and maxParticleScale wasn't resetting the Body size correctly.
This commit is contained in:
parent
8fc2a465cd
commit
e764be430e
3 changed files with 4 additions and 1 deletions
|
@ -116,6 +116,7 @@ Bug Fixes
|
|||
* SoundManager.boot will check to see if the AudioContext was created before carrying on (thanks @keyle, fix #669)
|
||||
* Fixed bug where move up and move down method in groups did not work (thanks @jonthulu, fix #684)
|
||||
* Fixed bug in Group.next when cursor is at the last child (thanks @jonthulu, fix #688)
|
||||
* Emitter.minParticleScale and maxParticleScale wasn't resetting the Body size correctly.
|
||||
|
||||
|
||||
ToDo
|
||||
|
|
|
@ -396,6 +396,8 @@ Phaser.Particles.Arcade.Emitter.prototype.emitParticle = function () {
|
|||
particle.scale.set(this.game.rnd.realInRange(this.minParticleScale, this.maxParticleScale));
|
||||
}
|
||||
|
||||
particle.body.updateBounds();
|
||||
|
||||
if (this.width > 1 || this.height > 1)
|
||||
{
|
||||
particle.reset(this.game.rnd.integerInRange(this.left, this.right), this.game.rnd.integerInRange(this.top, this.bottom));
|
||||
|
|
|
@ -200,7 +200,7 @@ Phaser.Tween.prototype = {
|
|||
* @param {boolean} [autoStart=false] - Whether this tween will start automatically or not.
|
||||
* @param {number} [delay=0] - Delay before this tween will start, defaults to 0 (no delay). Value given is in ms.
|
||||
* @param {number} [repeat=0] - Should the tween automatically restart once complete? If you want it to run forever set as Number.MAX_VALUE. This ignores any chained tweens.
|
||||
* @param {boolean} [yoyo=false] - A tween that yoyos will reverse itself when it completes.
|
||||
* @param {boolean} [yoyo=false] - A tween that yoyos will reverse itself and play backwards automatically. A yoyo'd tween doesn't fire the Tween.onComplete event, so listen for Tween.onLoop instead.
|
||||
* @return {Phaser.Tween} This Tween object.
|
||||
*/
|
||||
to: function (properties, duration, ease, autoStart, delay, repeat, yoyo) {
|
||||
|
|
Loading…
Reference in a new issue