improve position fixing

This commit is contained in:
2025-01-11 18:17:44 +09:00
parent f1c191f61f
commit 4aba510ec0
8 changed files with 117 additions and 34 deletions
+4
View File
@@ -34,6 +34,10 @@ export default class Game {
this.#terrains.push(terrain)
}
remove_terrain(terrain) {
this.#terrains = this.#terrains.filter((t) => t.id != terrain.id)
}
state() {
return {
...this,