game: online: add collision but weird lag

This commit is contained in:
2024-05-14 11:21:51 +02:00
parent 6fe4c9fe3b
commit 7b841f6f9e
3 changed files with 196 additions and 190 deletions

View File

@ -21,7 +21,7 @@ class Ball:
def reset(self) -> None:
self.size = config.BALL_SIZE
self.position = Position(Point(config.BALL_SPAWN_POS_X + self.size / 2, config.BALL_SPAWN_POS_Y + self.size / 2), time.time())
self.angle = math.pi * 1
self.angle = math.pi * 0
self.speed = config.BALL_SPEED_START
def to_dict(self) -> dict: