Advertisement
otorp2

Basic PYGame

Mar 12th, 2016
440
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. import pygame
  2.  
  3. pygame.init()
  4. screen = pygame.display.set_mode((400, 300))
  5. done = False
  6.  
  7. while not done:
  8. for event in pygame.event.get():
  9. if event.type == pygame.QUIT:
  10. done = True
  11.  
  12. pygame.display.flip()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement