fork download
  1. #Imdino; Factory simulator
  2. import pygame
  3.  
  4. pygame.init()
  5.  
  6. SCREEN_WIDTH = 800
  7. SCREEN_HEIGHT = 600
  8.  
  9. screen = pygame.display.set_mode((SCREEN_WIDTH, SCREEN_HEIGHT))
  10.  
  11. run = True
  12. while run:
  13.  
  14. for event in pygame.event.get():
  15. if event.type == pygame.QUIT:
  16. run = False
  17.  
  18. pygame.quit()
  19.  
Success #stdin #stdout #stderr 0.02s 6868KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
ERROR: /home/tCqVWv/prog:19:0: Syntax error: Unexpected end of file
ERROR: '$runtoplevel'/0: Undefined procedure: program/0
   Exception: (3) program ? EOF: exit