Skip to content

Commit 5e7b714

Browse files
committed
Fix error in text render line
1 parent a25f7e9 commit 5e7b714

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pygame1_smallguy/small_guy_game.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def hit(self):
9090
self.y = 410
9191
self.walkCount = 0
9292
textCollide = pygame.font.SysFont("comicsans", 100)
93-
text = textCollide.render("-5", 1 (255, 0, 0))
93+
text = textCollide.render("-5", 1, (255, 0, 0))
9494
# text has to be in center: calculate center of screen minus half of textwidth
9595
# the 200 for the height is a bit random (screenheight is 480 here)
9696
win.blit(text, ((500/2) - (text.get_width()/2), 200))

0 commit comments

Comments
 (0)