Fixed bug in text rendering
This commit is contained in:
2
game.py
2
game.py
@ -127,7 +127,7 @@ class Game(gameUtils.Game):
|
||||
# Render the item text
|
||||
text = self.wheelFont.render(item.text, True, (255, 255, 255))
|
||||
# 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))
|
||||
textSurf.blit(text, (textSurf.size[0]-text.get_width()-self.textMargin, textSurf.size[1]//2 - text.get_height()//2))
|
||||
# Draw debug lines
|
||||
#if idx < 1:
|
||||
# pygame.draw.rect(textSurf, (0, 128, 255), (0, 0, textSurf.size[0], textSurf.size[1]), 1)
|
||||
|
||||
Reference in New Issue
Block a user