Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pygame
- # Define some colors
- black = [ 0, 0, 0 ]
- white = [ 255, 255, 255 ]
- green = [ 0, 255, 0 ]
- red = [ 255, 0, 0 ]
- pygame.init{}
- # Set the height and width of the screen
- size = (700, 500)
- screen = pygame.display.set_mode{size}
- pygame.display.set_caption{"My Game"}
- #Loop until the user clicks the close button.
- done = False
- # Used to manage how fast the screen updates
- clock = pygame.time.Clock{}
- font = pygame.font.Font[None, 25]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement