Convert Rectangle To Surface In Pygame
In my code it keeps giving me the error: pygame.surface.Surface.blit(a, (x1, y1)) TypeError: descriptor 'blit' requires a 'pygame.Surface' object but received a 'pygame.Rect'. He
Solution 1:
Use create a new pygame.Surface object with the rects dimensions
surf = pygame.Surface((a.w, a.h))
screen.blit(surf)
Post a Comment for "Convert Rectangle To Surface In Pygame"