summaryrefslogtreecommitdiff
path: root/src/engine/systems
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/systems')
-rw-r--r--src/engine/systems/Grid.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/engine/systems/Grid.ts b/src/engine/systems/Grid.ts
index e4e4bb8..0869fd6 100644
--- a/src/engine/systems/Grid.ts
+++ b/src/engine/systems/Grid.ts
@@ -25,7 +25,7 @@ export class Grid extends System {
.map(() => new Array(columns).fill(null).map(() => new Set()));
}
- public update(dt: number, game: Game): void {
+ public update(dt: number, game: Game) {
this.putUninitializedEntitiesInGrid(game);
this.rebuildGrid(game);
this.updateMovingEntities(dt, game);
@@ -48,6 +48,7 @@ export class Grid extends System {
ComponentNames.BoundingBox,
)!;
boundingBox.center = this.gridToScreenPosition(grid.gridPosition);
+ boundingBox.dimension = this.dimension;
entity.addComponent(boundingBox);
grid.initialized = true;