Ask coding questions

← Back to all posts
 /usr/bin/run-project
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

run_game_loop()

pygame.QUIT()
quit()