update every 60 ticks
This commit is contained in:
parent
9bc2518a08
commit
83313f6cd4
1 changed files with 1 additions and 1 deletions
|
|
@ -69,7 +69,7 @@ class Client:
|
||||||
if self.moving_right:
|
if self.moving_right:
|
||||||
self.hero.x += speed
|
self.hero.x += speed
|
||||||
|
|
||||||
if self.ticks % 10 == 0:
|
if self.ticks % 60 == 0:
|
||||||
HeroUpdate(
|
HeroUpdate(
|
||||||
**{k: v for k, v in self.hero.dict().items() if v is not None}
|
**{k: v for k, v in self.hero.dict().items() if v is not None}
|
||||||
).update()
|
).update()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue