I downloaded a pygame example from here called rabbitone, and followed the corresponding youtube video.
So I have studied the code and tried it:
import pygame
pygame.init()
width, height = 640, 480
screen = pygame.display.set_mode((width, height))
player = pygame.image.load("resources/images/dude.png")
while True:
screen.fill(0,0,0)
pygame.display.flip()
screen.blit(player, (100,100))
for event in pygame.event.get():
if event.type == pygame.QUIT:
pygame.quit()
exit(0)
In the video tutorial I'm following, the code works. Why do I get this error?
Traceback (most recent call last):
File "", line 2, in
ValueError: invalid rectstyle object