game: fix: the board is draw with good angle

This commit is contained in:
starnakin 2024-01-21 14:09:43 +01:00
parent 8da7e09af7
commit ab73826c11

View File

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