game: add: padding to collision

This commit is contained in:
2024-02-20 09:07:01 +01:00
parent 983f457c1e
commit 59cac2b1fd
6 changed files with 43 additions and 19 deletions

View File

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