Advertisement
trodland

Partikkelsyste - starkode

Apr 15th, 2020
312
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.35 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))
  7.  
  8. while True:
  9.        
  10.     clock.tick(30)
  11.     pygame.display.update()
  12.    
  13.     for event in pygame.event.get():
  14.         if event.type == pygame.QUIT:
  15.             running = False
  16.      
  17. pygame.quit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement