Skip to content

Instantly share code, notes, and snippets.

@faradaym
Created July 11, 2017 20:12
Show Gist options
  • Save faradaym/f76977356c0fc4cd79c4e8c4410a7f65 to your computer and use it in GitHub Desktop.
Save faradaym/f76977356c0fc4cd79c4e8c4410a7f65 to your computer and use it in GitHub Desktop.
This works..
#!/usr/bin/python3
import pygame
import sys
exit_bool = False
def launch():
pygame.init()
pygame.display.set_mode((640, 480))
def exit_game():
while exit is False:
for event in pygame.event.get():
if event.type == pygame.QUIT:
global exit_bool
exit_bool = True
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