Made the first item appear on the right
This commit is contained in:
2
game.py
2
game.py
@ -106,8 +106,6 @@ class Game(gameUtils.Game):
|
|||||||
for idx, item in enumerate(self.items):
|
for idx, item in enumerate(self.items):
|
||||||
# Calculate the radians of this item
|
# Calculate the radians of this item
|
||||||
rad = (idx / len(self.items)) * maths.pi * 2
|
rad = (idx / len(self.items)) * maths.pi * 2
|
||||||
# Rotate it CCW be 90deg so the first item is on the top
|
|
||||||
rad -= maths.pi / 2
|
|
||||||
# Calculate the vector offset by half the item gap
|
# Calculate the vector offset by half the item gap
|
||||||
# This is because the text should be in the middle,
|
# This is because the text should be in the middle,
|
||||||
# and the lines (which is what this is used by) on the edges
|
# and the lines (which is what this is used by) on the edges
|
||||||
|
|||||||
Reference in New Issue
Block a user