BoothPi/python_games/blankpygame.py

12 lines
308 B
Python
Raw Normal View History

2016-12-06 20:53:25 +00:00
import pygame, sys
from pygame.locals import *
pygame.init()
DISPLAYSURF = pygame.display.set_mode((400, 300))
pygame.display.set_caption('Hello Pygame World!')
while True: # main game loop
for event in pygame.event.get():
if event.type == QUIT:
pygame.quit()
sys.exit()