Skip to content

Commit

Permalink
fix: Tilemap initialize after ECS refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
eonarheim committed Jan 24, 2024
1 parent 73d94d8 commit 7b1c1af
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/engine/TileMap/TileMap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,7 @@ export class TileMap extends Entity {
}

public update(engine: Engine, delta: number) {
this._initialize(engine);
this.onPreUpdate(engine, delta);
this.emit('preupdate', new PreUpdateEvent(engine, delta, this));
if (!this._oldPos.equals(this.pos) ||
Expand Down

0 comments on commit 7b1c1af

Please sign in to comment.