Skip to content

Instantly share code, notes, and snippets.

@themixray
Created April 3, 2022 17:09
Show Gist options
  • Save themixray/097fcf479122075acd53ac8635a61c1d to your computer and use it in GitHub Desktop.
Save themixray/097fcf479122075acd53ac8635a61c1d to your computer and use it in GitHub Desktop.
Pygame template
import pygame
pygame.init()
win = pygame.display.set_mode((500,500))
pygame.display.set_caption("My Game")
clock = pygame.time.Clock()
run = True
while run:
for event in pygame.event.get():
if event.type == pygame.QUIT:
run = False
pygame.display.flip()
clock.tick(60)
pygame.quit()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment