diff options
Diffstat (limited to 'src/engine/entities/Particles.ts')
-rw-r--r-- | src/engine/entities/Particles.ts | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/engine/entities/Particles.ts b/src/engine/entities/Particles.ts index d2d4dbb..5381b23 100644 --- a/src/engine/entities/Particles.ts +++ b/src/engine/entities/Particles.ts @@ -86,7 +86,7 @@ class ParticleRenderer extends Component implements Renderable { particle.dimension.height / 2, 0, 0, - Math.PI * 2 + Math.PI * 2, ); ctx.fill(); } else { @@ -94,7 +94,7 @@ class ParticleRenderer extends Component implements Renderable { particle.position.x - particle.dimension.width / 2, particle.position.y - particle.dimension.height / 2, particle.dimension.width, - particle.dimension.height + particle.dimension.height, ); } } @@ -119,7 +119,7 @@ export class Particles extends Entity { const life = this.getComponent<Life>(ComponentNames.Life); life.alive = false; this.addComponent(life); - }) + }), ); this.addComponent( @@ -132,8 +132,8 @@ export class Particles extends Entity { width: spawnOptions.spawnerDimensions.width, height: spawnOptions.spawnerDimensions.height, }, - 0 - ) + 0, + ), ); } @@ -141,15 +141,15 @@ export class Particles extends Entity { const angle = Math.random() * Math.PI * 2; const speed = normalRandom( options.particleMeanSpeed, - options.particleSpeedVariance + options.particleSpeedVariance, ); const life = normalRandom( options.particleMeanLife, - options.particleLifeVariance + options.particleLifeVariance, ); const size = normalRandom( options.particleMeanSize, - options.particleSizeVariance + options.particleSizeVariance, ); const color = options.particleColors[ |