refactor: only using width
This commit is contained in:
parent
1fff0cdb16
commit
d02b5ccced
|
@ -60,8 +60,7 @@ class TilesBase {
|
|||
}
|
||||
|
||||
tileAt(x, y) {
|
||||
const [width, height] = this.size;
|
||||
return this.data[y * width + x];
|
||||
return this.data[y * this.width + x];
|
||||
}
|
||||
|
||||
toJSON() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user