+ 2
Images in pygame
Hi, I've been trying to make a simple game in python using pygame. I can't get the images for the characters to load. How do you do this?
2 Respostas
+ 2
You first need to load the image with the load method:
img = pygame.image.load("example.png")
Then you use the blit method to insert it to the wanted surface:
surface.blit(img, img.get_rect())