Code: Selecteer alles
import sys, pygame
pygame.init()
size = width, height = 600,400
screen = pygame.display.set_mode(size)
zombie = pygame.image.load("test.png")
screen.blit(zombie,(1,1))
pygame.display.flip(0)
while 1:
for event in pygame.event.get():
if event.type == pygame.QUIT:sys.exit()
Code: Selecteer alles
Traceback (most recent call last):
File "C:/Users/Gebruiker/Desktop/test.py", line 9, in <module>
zombie = pygame.image.load("test.png")
error: Couldn't open test.png
bedankt