Advertisement
IHATEMICROWAVEOVEN

tower defense text

Oct 23rd, 2024
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1.  
  2. put this somewhere above the while-loop:
  3.  
  4. pygame.font.init()
  5. shopFont = pygame.font.SysFont('Arial', 10)
  6. statsFont = pygame.font.SysFont('Arial', 20)
  7.  
  8.  
  9.  
  10. put this right underneath each shop button being created:
  11.  
  12. message = coolFont.render('Pawn: $100', False, (0, 0, 0))
  13. screen.blit(message, (415, 50))
  14.  
  15.  
  16. put this right before pygame.display.flip():
  17.  
  18. healthText = statsFont.render('Health: 100', False, (0, 0, 0))
  19. screen.blit(healthText, (0,0))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement