Python Forum
[PyGame] printing integers on pygame.draw.rect
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyGame] printing integers on pygame.draw.rect
#2
I think it would be easier to create a Box class. In which based on its index in the alignment of a 10 by 10 grid would identify what color it is and what number it is. Then create a text object and its box index determines its number.
Recommended Tutorials:
Reply


Messages In This Thread
printing integers on pygame.draw.rect - by Shyckh - Aug-22-2020, 08:41 AM
RE: printing integers on pygame.draw.rect - by metulburr - Aug-22-2020, 11:44 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  [PyGame] Rect object penetrates wall on one side Jan_97 4 2,653 Dec-30-2021, 11:08 PM
Last Post: Jan_97
  rect object not loading BlueClaw 2 4,200 Dec-11-2019, 04:25 PM
Last Post: BlueClaw
  [PyGame] PYGAME draw ball gean 1 2,690 Nov-08-2019, 11:16 AM
Last Post: metulburr
  [PyGame] pygame.draw.rect function stretches across the screen instead of moving BubblesTheGiraffe 2 3,750 Jun-11-2019, 08:32 PM
Last Post: metulburr
  [PyGame] assigning rect to sprite pfaber11 1 2,234 May-18-2019, 05:39 PM
Last Post: metulburr

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020