From 6adb31f4662b25be1c480937836b61d3d87cdc3e Mon Sep 17 00:00:00 2001 From: Brosef Date: Thu, 26 Jun 2025 16:54:49 +0100 Subject: [PATCH] Updated debug line code --- game.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/game.py b/game.py index 6bd6df2..1ad3d51 100644 --- a/game.py +++ b/game.py @@ -129,9 +129,10 @@ class Game(gameUtils.Game): # Draw the item text onto the text surface, centred to the right textSurf.blit(text, (textSurf.size[0]-text.get_width()-self.textMargin, self.size[1]//2 - text.get_height()//2)) # Draw debug lines - #pygame.draw.rect(textSurf, (0, 128, 255), (0, 0, textSurf.size[0], textSurf.size[1]), 1) - #pygame.draw.line(textSurf, (255, 0, 0), (circleR, circleR), (textSurf.size[0], circleR)) - #pygame.draw.line(textSurf, (0, 255, 0), (circleR, circleR), (circleR, textSurf.size[1])) + #if idx < 1: + # pygame.draw.rect(textSurf, (0, 128, 255), (0, 0, textSurf.size[0], textSurf.size[1]), 1) + # pygame.draw.line(textSurf, (255, 0, 0), (circleR, circleR), (textSurf.size[0], circleR)) + # pygame.draw.line(textSurf, (0, 255, 0), (circleR, circleR), (circleR, textSurf.size[1])) # Rotate the text surface textSurf = rotateRad(textSurf, -rad) # Blit the text surface to the wheel surface