Created
July 11, 2017 20:12
-
-
Save faradaym/f76977356c0fc4cd79c4e8c4410a7f65 to your computer and use it in GitHub Desktop.
This works..
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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