#!/usr/bin/python3
# ====================================================================
# From: www.youtube.com/watch?v=y9VG3Pztok8
# Get Started in Pygame in 10 minutes!
# ====================================================================
import pygame
pygame.init()
# ---- game window
SCREEN_HEIGHT = 800
SCREEN_WIDTH = 600
screen = pygame.display.set_mode((SCREEN_WIDTH,SCREEN_HEIGHT))
# ---- game loop
run = True
while run:
# ---- event handler
for event in pygame.event.get():
if event.type == pygame.event.QUIT:
run = False
# ---- game end/exit
pygame.quit()