#!/usr/bin/env python
# -*- coding: utf-8 -*-

from pygame.locals import *

#NOMBRE DEL JUEGO
NOMBRE_JUEGO = "Mr. Frozzi"

#COLORES		R   G   B
AQUA  		= (  0,255,255)
BLACK 		= (  0,  0,  0)
BLUE 		= (  0,  0,255)
FUCHSIA 	= (255,  0,255)
GRAY 		= (128,128,128)
GREEN 		= (  0,128,  0)
LIME 		= (  0,255,  0)
MAROON 		= (128,  0,  0)
NAVY_BLUE 	= (  0,  0,128)
OLIVE 		= (128,128,  0)
PURPLE 		= (128,  0,128)
RED 		= (255,  0,  0)
SILVER 		= (192,192,192)
TEAL 		= (  0,128,128)
WHITE 		= (255,255,255)
YELLOW 		= (255,255,  0)

AZUL_MARINO = ( 18, 41, 57)
CREAM 		= (218,231,197)

#RUTAS
RUTA_IMAGENES = "images/"
RUTA_MUSICA = "music/"
#CONFIGURACIONES GENERALES
WINDOW_WIDTH = 720
WINDOW_HEIGHT = 600
#MENSAJES
FONT_TEXT = 'freesansbold.ttf'
SCORE_FONT_SIZE = 12
SCORE_POSITION = (520,20)
SCORE_COLOR = CREAM
GAME_OVER_FONT_SIZE = 70
GAME_OVER_COLOR = CREAM+(200,)
#CONFIGURACIONES ESPECÍFICAS
FRAME_SIZE = 30
FROZZI_SIZE = 3*FRAME_SIZE # 90
SNOW_SIZE = 15
FIRE_SIZE = FRAME_SIZE
FISH_SIZE = 30
ELEMENTS_SIZE = 30
LIGHT_SIZE = 50
FPS = 30 # frames per second setting
CORRIMIENTO_BASE = 15
ELEMENTS_SPEED_FACTOR = 10
EVENTOS = {KEYDOWN:{K_DOWN:{"direccion":'S'},
					K_UP:{"direccion":'N',},
					K_LEFT:{"direccion":'O'},
					K_RIGHT:{"direccion":'E'},
					K_s:{"direccion":'S'},
					K_w:{"direccion":'N',},
					K_a:{"direccion":'O'},
					K_d:{"direccion":'E'},
					"rotar":True},
		   KEYUP:{"direccion":'',"rotar":False}}
#frozzi_CENTER = FROZZI_SIZE/2# - ELEMENTS_SIZE/2

#CONFIGURACIÓN JUEGO
TECLAS_MOVIMIENTO = [K_DOWN,K_UP,K_LEFT,K_RIGHT,K_a,K_s,K_w,K_d]
MOVIMIENTO_JUGADOR = USEREVENT + 1
PERIODO_JUGADOR = 5*FPS

#DISPARO = USEREVENT + 2
#PERIODO_DISPARO = 2*FPS

GRADOS_ROTACION_frozzi = 5

RADIUS = {"frozzi":FROZZI_SIZE/2,
		  "copos_nieve": SNOW_SIZE/2,
		  "bolas_fuego": FIRE_SIZE/2,
		  "peces": FISH_SIZE/2}

EXPLOSION_RADIO = ELEMENTS_SIZE/2

POSICION_INICIAL = (WINDOW_WIDTH/2-RADIUS["frozzi"]-1,WINDOW_HEIGHT-RADIUS["frozzi"]-CORRIMIENTO_BASE)
SPEED_FACTOR = {"frozzi": 15,
				"copos_nieve": 20,
				"bolas_fuego":4,
				"peces": 7}
INITIAL_FACTOR = .2
#PROBABILIDADES
DIST_TEMP_INICIAL = 5
DIFFICULTY_FACTOR=.1
DIFFICULTY_LEVEL = 4 #Este valor puede variar entre el 1 y el 10
SCORE_FACTOR = 10
CANTIDAD_INICIAL = 1
PROB_NADA = .4
PROB_BOLA_FUEGO = .5
PROB_PEZ = 1-PROB_BOLA_FUEGO-PROB_NADA

#MUNICIONES Y VIDAS EXTRA
EXTRA_MUNICION_FACTOR = 10
MUNICION_EXTRA = 50
EXTRA_VIDAS_FACTOR = 30
VIDAS_EXTRA = 2
