chore: ded

This commit is contained in:
cha0s 2022-04-15 19:44:52 -05:00
parent 1a8e4c5b89
commit 7534cfa65d
2 changed files with 0 additions and 13 deletions

View File

@ -114,9 +114,6 @@ export default (flecks) => {
tick(elapsed) { tick(elapsed) {
this.entityList.tick(elapsed); this.entityList.tick(elapsed);
for (let i = 0; i < this.tiles.length; i++) {
this.tiles[i].tick(elapsed);
}
} }
toJSON() { toJSON() {

View File

@ -24,8 +24,6 @@ export default (flecks) => {
$$data = new Uint16Array(); $$data = new Uint16Array();
$$hasUpdates = false;
$$packets = []; $$packets = [];
$$s13nId = 0; $$s13nId = 0;
@ -265,7 +263,6 @@ export default (flecks) => {
} }
if (isDirty && 'web' !== process.env.FLECKS_CORE_BUILD_TARGET) { if (isDirty && 'web' !== process.env.FLECKS_CORE_BUILD_TARGET) {
this.$$updates.push([[x, y], [w, h], tiles]); this.$$updates.push([[x, y], [w, h], tiles]);
this.$$hasUpdates = true;
} }
} }
@ -273,13 +270,6 @@ export default (flecks) => {
return this.$$atlas.subimage(index); return this.$$atlas.subimage(index);
} }
tick() {
if (this.$$hasUpdates) {
this.emit('update');
}
this.$$hasUpdates = false;
}
tileAt([x, y]) { tileAt([x, y]) {
const [w, h] = this.area; const [w, h] = this.area;
return x < 0 || x >= w || y < 0 || y >= h ? undefined : this.$$data[y * w + x]; return x < 0 || x >= w || y < 0 || y >= h ? undefined : this.$$data[y * w + x];