import pygame as pg import constants as c #initialise pygame pg.init() #create clock clock = pg.time.Clock() SCREEN_WIDTH = 500 SCREEN_HIGHT = 500 FPS = 60 #crate game window screen = pg.display.set_mode(c.SCREEN_WIDTH, c.SCREEN_HIGHT) pg.display.set_caption("tower defence") #load images enemy_image = pg.image.load #game loop run = True while run: clock.tick(c.FPS) #event handler for event in pg.event.get(): #quit program if event.type == pg.QUIT: run = False pg.quit()