summaryrefslogtreecommitdiff
path: root/src/engine/systems/Render.ts
diff options
context:
space:
mode:
authorLizzy Hunt <elizabeth.hunt@simponic.xyz>2024-03-09 21:51:22 -0700
committerLizzy Hunt <elizabeth.hunt@simponic.xyz>2024-03-09 21:51:22 -0700
commit42838864af3503f85cabc5dbd73b98a64d20cded (patch)
tree48dd75f0b9fcdc1fb8ec6db5ac2bec0a36b9afe7 /src/engine/systems/Render.ts
parentce403459fa82025bd969d1938ed4034a10c2e751 (diff)
downloadthe-abstraction-engine-42838864af3503f85cabc5dbd73b98a64d20cded.tar.gz
the-abstraction-engine-42838864af3503f85cabc5dbd73b98a64d20cded.zip
prettier
Diffstat (limited to 'src/engine/systems/Render.ts')
-rw-r--r--src/engine/systems/Render.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/engine/systems/Render.ts b/src/engine/systems/Render.ts
index 2dd35e2..c730cec 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;
}