diff --git a/packages/topdown/src/resources/room.js b/packages/topdown/src/resources/room.js index 516b15b..5267a4f 100644 --- a/packages/topdown/src/resources/room.js +++ b/packages/topdown/src/resources/room.js @@ -114,9 +114,6 @@ export default (flecks) => { tick(elapsed) { this.entityList.tick(elapsed); - for (let i = 0; i < this.tiles.length; i++) { - this.tiles[i].tick(elapsed); - } } toJSON() { diff --git a/packages/topdown/src/resources/tiles.js b/packages/topdown/src/resources/tiles.js index a9a5fa9..98348d4 100644 --- a/packages/topdown/src/resources/tiles.js +++ b/packages/topdown/src/resources/tiles.js @@ -24,8 +24,6 @@ export default (flecks) => { $$data = new Uint16Array(); - $$hasUpdates = false; - $$packets = []; $$s13nId = 0; @@ -265,7 +263,6 @@ export default (flecks) => { } if (isDirty && 'web' !== process.env.FLECKS_CORE_BUILD_TARGET) { this.$$updates.push([[x, y], [w, h], tiles]); - this.$$hasUpdates = true; } } @@ -273,13 +270,6 @@ export default (flecks) => { return this.$$atlas.subimage(index); } - tick() { - if (this.$$hasUpdates) { - this.emit('update'); - } - this.$$hasUpdates = false; - } - tileAt([x, y]) { const [w, h] = this.area; return x < 0 || x >= w || y < 0 || y >= h ? undefined : this.$$data[y * w + x];