from pygame.locals import *

TILEWIDTH = 80
TILEHEIGHT = 40
WALLWIDTH = 40
WALLHEIGHT = 60
SCREENWIDTH = 800
SCREENHEIGHT = 600
MENUCENTER = SCREENWIDTH*7/10
MENUTOP = SCREENHEIGHT*1/2

COLOR1 = (150, 40, 20)
COLOR2 = (200, 50, 25)

NEXTFRAME = USEREVENT + 1
FPS = 12
FAST_PATH_DIVISION = 0.3
PATH_CHECK_DELAY = 0.5
ACTION_CHECK_DELAY = 1.0

MAX_HEALTH = 13
ZOMBIE_ATTACK_DISTANCE = 5.0
CHAR_AUTOLOOK_DISTANCE = 5.0
CHAR_AUTOATTACK_DISTANCE = 2.0
TYPE_OBJECT = 0
TYPE_CHARACTER = 1
TYPE_ENEMY = 2
TYPE_SPAWNPOINT = 3

CHAR_ZOMBIFICATION_DELAY = 20

class Variables:
    psychomode = False
    sound = True
    music = True
    name = "Zombintappaja"

class Score:
    zombies_dead = 0
    objectives_met = 0

def get_score(characters_alive):
    return Score.zombies_dead * 10 + characters_alive * 100 + Score.objectives_met * 1000