Advertisement
trodland

AstroWars Tutorial Start

Apr 30th, 2020
633
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
  2.  
  3. pygame.init()
  4. clock = pygame.time.Clock()
  5. WIDTH = 600
  6. HEIGHT = 600
  7. screen = pygame.display.set_mode((WIDTH, HEIGHT))
  8.  
  9.  
  10.  
  11. while True:
  12.    
  13.     screen.fill((255,255,255))
  14.        
  15.     pygame.display.update()    
  16.     clock.tick(30)
  17.    
  18.  
  19.     for event in pygame.event.get():
  20.         if event.type == pygame.QUIT:
  21.             pygame.quit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement