Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pygame
- pygame.init()
- pygame.font.init()
- width = 1200
- height = 600
- window = pygame.display.set_mode((width, height))
- pygame.display.set_caption("Game Title")
- # Class definitions and variables
- # Main game loop
- clock = pygame.time.Clock()
- running = True
- while running:
- for event in pygame.event.get():
- if event.type == pygame.QUIT:
- running = False
- window.fill((255, 255, 255))
- # Moving and drawing
- pygame.display.update()
- clock.tick(60)
- pygame.quit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement