rely on stringification instead of state reports

This commit is contained in:
2025-01-17 23:04:38 +09:00
parent 80ccb92815
commit 9345c7af04
9 changed files with 123 additions and 73 deletions
-6
View File
@@ -52,12 +52,6 @@ export default class Projectile {
this.game?.despawn(this)
}
state() {
return {
...this,
}
}
update() {
this.#move()
if (this.onCollide != null) { this.checkCollisions(this.collider()) }