Compare commits
2 Commits
97bd53e491
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 36d646a26f | |||
| 32c33ae613 |
5
game.py
5
game.py
@ -73,6 +73,8 @@ class WCfg:
|
||||
font = pygame.font.SysFont('', 32)
|
||||
|
||||
class WheelItem:
|
||||
# TODO: Add integration with NoPE-Lib
|
||||
# TODO: Allow this to modify game attributes so it can hide the wheel and respin
|
||||
def __init__(self, text):
|
||||
self.text = text
|
||||
|
||||
@ -186,7 +188,8 @@ class Game(gameUtils.Game):
|
||||
arrowX = (self.size[0] - self.wheelSurf.size[0]) // 2 + self.wheelSurf.size[0]
|
||||
arrowY = self.size[1] // 2
|
||||
arrowSize = 20
|
||||
pygame.draw.polygon(self.surf, (255, 255, 255), ((arrowX, arrowY), (arrowX+arrowSize, arrowY-arrowSize//2), (arrowX+arrowSize, arrowY+arrowSize//2)))
|
||||
arrowPollys = ((arrowX, arrowY), (arrowX+arrowSize, arrowY-arrowSize//2), (arrowX+arrowSize, arrowY+arrowSize//2))
|
||||
pygame.draw.polygon(self.surf, (255, 255, 255), arrowPollys)
|
||||
|
||||
animTime = time.perf_counter() - self.wheelAnimStart
|
||||
if animTime < WCfg.spinFadeInTimes[0] + WCfg.spinFadeOutTimes[0]:
|
||||
|
||||
Reference in New Issue
Block a user