rely on stringification instead of state reports
This commit is contained in:
@@ -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()) }
|
||||
|
||||
Reference in New Issue
Block a user