0
Q:

pygame surface

size = width, height = (32, 32)
empty_surface = pygame.Surface(size)
1
# load an image as a surface
my_image = pygame.image.load(path_to_image)
0
# blitting a surface into another surface
screen.blit(my_image, (0, 0))
pygame.display.update()  # or pygame.display.flip()
0

New to Communities?

Join the community