import pygame
pygame.init()
SCREEN_WIDTH = 800
SCREEN_HEIGHT = int(SCREEN_WIDTH * 0.8)
screen = pygame.display.set_mode((SCREEN_WIDTH, SCREEN_HEIGHT))
pygame.display.set_caption('Sidescroller')
x = 200
y = 200
img = pygame.image.load("img.rar").convert_alpha()
rect = img.get_rect()
rect.center = (x, y)
run = True
while run:
for event in pygame.event.get():
if event.type == pygame.QUIT:
run = False
pygame.quit()
I've tried to change the format to other types and to redownload the packages but it doesnt help