diff options
Diffstat (limited to 'src/engine/systems/Render.ts')
-rw-r--r-- | src/engine/systems/Render.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/engine/systems/Render.ts b/src/engine/systems/Render.ts index c730cec..2dd35e2 100644 --- a/src/engine/systems/Render.ts +++ b/src/engine/systems/Render.ts @@ -26,7 +26,7 @@ export class Render extends System { sprite.update(dt); const boundingBox = entity.getComponent<BoundingBox>( - ComponentNames.BoundingBox + ComponentNames.BoundingBox, ); // don't render if we're outside the screen @@ -34,12 +34,12 @@ export class Render extends System { clamp( boundingBox.center.y, -boundingBox.dimension.height / 2, - this.ctx.canvas.height + boundingBox.dimension.height / 2 + this.ctx.canvas.height + boundingBox.dimension.height / 2, ) != boundingBox.center.y || clamp( boundingBox.center.x, -boundingBox.dimension.width / 2, - this.ctx.canvas.width + boundingBox.dimension.width / 2 + this.ctx.canvas.width + boundingBox.dimension.width / 2, ) != boundingBox.center.x ) { return; @@ -52,7 +52,7 @@ export class Render extends System { }; if (entity.hasComponent(ComponentNames.Highlight)) { const highlight = entity.getComponent<Highlight>( - ComponentNames.Highlight + ComponentNames.Highlight, ); drawArgs.tint = highlight.isHighlighted ? "red" : undefined; } |