robertvari

Basic Window

Apr 1st, 2022 (edited)
714
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.34 KB | None | 0 0
  1. import pygame, sys
  2.  
  3. pygame.init()
  4. screen = pygame.display.set_mode((800, 800))
  5. pygame.display.set_caption("Creating Surfaces")
  6. clock = pygame.time.Clock()
  7.  
  8.  
  9. while True:
  10.     for event in pygame.event.get():
  11.         if event.type == pygame.QUIT:
  12.             pygame.quit()
  13.             sys.exit()
  14.  
  15.     pygame.display.flip()
  16.     clock.tick(60)
Add Comment
Please, Sign In to add comment