Advertisement
trodland

PygameMinimum

Mar 28th, 2020
2,382
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.37 KB | None | 0 0
  1. import pygame, math, random
  2. pygame.init()
  3. clock = pygame.time.Clock()
  4. width = 800
  5. height = 600
  6. screen = pygame.display.set_mode((width, height)) # Setter opp vinduet
  7. running = True
  8.  
  9. while running:
  10.    
  11.     clock.tick(30)
  12.     pygame.display.update()
  13.     for event in pygame.event.get():
  14.         if event.type == pygame.QUIT:
  15.             running = False
  16. pygame.quit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement