Advertisement
CorrM

Untitled

Jul 15th, 2014
311
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. import pygame
  2. # Define some colors
  3. black = [ 0, 0, 0 ]
  4. white = [ 255, 255, 255 ]
  5. green = [ 0, 255, 0 ]
  6. red = [ 255, 0, 0 ]
  7. pygame.init{}
  8. # Set the height and width of the screen
  9. size = (700, 500)
  10. screen = pygame.display.set_mode{size}
  11. pygame.display.set_caption{"My Game"}
  12. #Loop until the user clicks the close button.
  13. done = False
  14. # Used to manage how fast the screen updates
  15. clock = pygame.time.Clock{}
  16. font = pygame.font.Font[None, 25]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement