diff options
author | Lizzy Hunt <elizabeth.hunt@simponic.xyz> | 2024-03-09 21:51:22 -0700 |
---|---|---|
committer | Lizzy Hunt <elizabeth.hunt@simponic.xyz> | 2024-03-09 21:51:22 -0700 |
commit | 42838864af3503f85cabc5dbd73b98a64d20cded (patch) | |
tree | 48dd75f0b9fcdc1fb8ec6db5ac2bec0a36b9afe7 /src/engine/entities/Particles.ts | |
parent | ce403459fa82025bd969d1938ed4034a10c2e751 (diff) | |
download | the-abstraction-engine-42838864af3503f85cabc5dbd73b98a64d20cded.tar.gz the-abstraction-engine-42838864af3503f85cabc5dbd73b98a64d20cded.zip |
prettier
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 5381b23..d2d4dbb 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[ |