import pygame as pg import constants as c #Initialise pygame pg.init() #Create clock clock = pg.time.Clock() #Create window screen = pg.display.set_mode((c.SCREEN_WIDTH,c.SCREEN_HEIGHT)) pg.display.set_caption("Tower Defense") #Load image enemy_image = pg.image.load('TOWER DEFENSE/enemies/enemy_1.png') #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()