update every 60 ticks

This commit is contained in:
Waylon Walker 2023-06-10 19:18:13 -05:00
parent 9bc2518a08
commit 83313f6cd4
No known key found for this signature in database
GPG key ID: 66E2BF2B4190EFE4

View file

@ -69,7 +69,7 @@ class Client:
if self.moving_right:
self.hero.x += speed
if self.ticks % 10 == 0:
if self.ticks % 60 == 0:
HeroUpdate(
**{k: v for k, v in self.hero.dict().items() if v is not None}
).update()