Skip to content
Sign upLog in
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
1

 /usr/bin/run-project

devkt48
devkt48

Get this error when trying to run my code.

/usr/bin/run-project

Here's my code:

import pygame

pygame.init()

game_window = pygame.display.set_mode((900,900))

white_color = (255, 255, 255)
game_window.fill(white_color)
pygame.display.update()

clock = pygame.time.Clock()

def run_game_loop():
while True:
events = pygame.get.events()
for event in events:
if event.type == pygame.QUIT():
break

game_window.fill(white_color) background = pygame.image.load('assets/background.png') game_window.blit(background, (0,0)) pygame.display.update() clock.tick(60)

run_game_loop()

pygame.QUIT()
quit()

1 year ago