####imports####
import pygame
import time
import random
##### functions #####
#this allows us to make an entity move towards a target
def running(surface,rectangle,target,speed=2):
pos = pygame.Vector2(rectangle.center)
target = pygame.Vector2(target)
dt = speed
events = pygame.event.get()
for event in events:
if event.type == pygame.QUIT:
quitgame()
pos = pos.move_towards(target, dt)
rectangle.center = pos
gameDisplay.blit(surface,rectangle)
##### Checkpoints #####
checkpoint_1 = ((985, 467),(844, 441),(804, 338),(862, 270),(986, 233),(988, 108),(912, 64),(411, 84),(380, 145),(362, 235),(236, 268),(179, 333),(168, 435))
##### Tier 1 Entities #####
speed = 2
#### basic functions and veriables ####
def quitgame():
pygame.quit()
quit()
size = display_width,display_height = 1080,600
gameDisplay = pygame.display.set_mode((display_width,display_height))