diff options
author | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2024-03-11 16:35:51 -0600 |
---|---|---|
committer | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2024-03-11 16:35:51 -0600 |
commit | de4f3fd2fe45478ffabc84f055592e11b119d0a4 (patch) | |
tree | ad2ce3b3e646d2d6bfbccb4b9c8962196a0ea8fe /src/engine/entities/Particles.ts | |
parent | 32879581e53fae5e684c24b44433172d8375d69e (diff) | |
download | the-abstraction-engine-de4f3fd2fe45478ffabc84f055592e11b119d0a4.tar.gz the-abstraction-engine-de4f3fd2fe45478ffabc84f055592e11b119d0a4.zip |
prettier, fix assets and css
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[ |