game: add: use straight line colision (Not finished)

This commit is contained in:
2024-02-01 17:37:46 +01:00
parent beb0cd4702
commit 5f8c42d0c3
3 changed files with 87 additions and 43 deletions

View File

@ -43,7 +43,7 @@ class Game(AbstractRoom):
for i in range(nb_sides):
angle: float = (i * 2 * math.pi / nb_sides) + (math.pi * 3 / nb_sides)
x: float = round(config.MAP_CENTER_X + radius * math.cos(angle))
y: float = round(config.MAP_CENTER_Y + radius * math.sin(angle))