Skip to content

Instantly share code, notes, and snippets.

@faradaym
Created July 11, 2017 20:15
Show Gist options
  • Save faradaym/844c429d08edfac521e18985d18a07d9 to your computer and use it in GitHub Desktop.
Save faradaym/844c429d08edfac521e18985d18a07d9 to your computer and use it in GitHub Desktop.
This doesn't
#!/usr/bin/python3
import pygame
import sys
running = True
def launch():
pygame.init()
pygame.display.set_mode((640, 480))
def exit_game():
while running:
for event in pygame.event.get():
if event.type == pygame.QUIT:
global running
running = False
pygame.display.quit()
pygame.quit()
sys.exit()
launch()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment