Skip to content

Instantly share code, notes, and snippets.

@Kanol
Last active April 25, 2021 13:37
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kanol/ba73aa7be8524a53e0968972fe1158b0 to your computer and use it in GitHub Desktop.
Save Kanol/ba73aa7be8524a53e0968972fe1158b0 to your computer and use it in GitHub Desktop.
import pygame
WIDTH = 300
HEIGHT = 250
FPS = 60
pygame.init()
screen = pygame.display.set_mode((WIDTH, HEIGHT))
clock = pygame.time.Clock()
running = True
while running:
for event in pygame.event.get():
if event.type == pygame.QUIT:
running = False
screen.fill((255, 255, 255))
pygame.display.update()
clock.tick(FPS)
pygame.quit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment