diff options
author | flavio <fdanesse@gmail.com> | 2011-12-07 23:10:50 (GMT) |
---|---|---|
committer | flavio <fdanesse@gmail.com> | 2011-12-07 23:10:50 (GMT) |
commit | 9d57ae40095b2928672b2f4b23a87b8d5927753e (patch) | |
tree | f36922e4cb1db2642d954a9fe71493fcdc55df23 /Globals.py |
CucaraSims Base
Diffstat (limited to 'Globals.py')
-rw-r--r-- | Globals.py | 110 |
1 files changed, 110 insertions, 0 deletions
diff --git a/Globals.py b/Globals.py new file mode 100644 index 0000000..f5fb3b6 --- /dev/null +++ b/Globals.py @@ -0,0 +1,110 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- + +# VariablesGlobales.py por: +# Flavio Danesse <fdanesse@gmail.com> +# CeibalJAM! - Uruguay + +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +import os + +RESOLUCION = (1200,900) + +BASE= os.path.dirname(__file__) +DIRECTORIO_DATOS= os.path.join(BASE, 'data') +ICONOS= os.path.join(BASE, "Iconos") +CUCARACHAIMAGENES= os.path.join(BASE, "CUCARACHA", "Imagenes") +CUCARACHASONIDOS= os.path.join(BASE, "CUCARACHA", "Sonidos") + +# -------------------------------- Cria de Cucarachas -------------------------------- # +VELOCIDADJUEGO = 3 +MAXIMOCUCAS = 15 + +# Datos Vitales +ESCALASMUDAS = [(73,60),(83,70),(93,80),(103,90)] +DIASMUDAS = [9,21,32,43] +DIASREPRO = [51, 62, 73] +DIASCADAVER = 3 +UNIDADALIMENTO = 333 +UNIDADAGUA = 333 +AUMENTAHAMBRE = 2 # por dia +AUMENTASED = 2 # por dia +RINDEALIMENTO = 5 # cada 30 pasadas update +RINDEAGUA = 5 +CONSUMOALIMENTO = 10 # resta cuando come +CONSUMOAGUA = 10 +NACER = 9 # incubacion de ooteca en dias + +# Limites vitales +LIMITEHAMBRE = -126 +LIMITESED = -126 +LIMITEVIDA = 84 + +CUCARACHA1 = os.path.join(CUCARACHAIMAGENES, "cucaracha1.png") +CUCARACHA2 = os.path.join(CUCARACHAIMAGENES, "cucaracha2.png") +CUCARACHA3 = os.path.join(CUCARACHAIMAGENES, "cucaracha3.png") +CUCARACHA4 = os.path.join(CUCARACHAIMAGENES, "cucaracha4.png") + +SONIDOCUCARACHA = os.path.join(CUCARACHASONIDOS, "cucaracha.ogg") + +MUDAS = os.path.join(BASE, "CUCARACHA/Muda/") + +MUDA1 = os.path.join(CUCARACHAIMAGENES, "muda1.png") +MUDA2 = os.path.join(CUCARACHAIMAGENES, "muda2.png") + +OOTECA = os.path.join(CUCARACHAIMAGENES, "huevos.png") +REPRODUCCION1 = os.path.join(CUCARACHAIMAGENES, "reproduccion1.png") +REPRODUCCION2 = os.path.join(CUCARACHAIMAGENES, "reproduccion2.png") +CICLO1 = os.path.join(CUCARACHAIMAGENES, "ciclo_vital1.png") +CICLO2 = os.path.join(CUCARACHAIMAGENES, "ciclo_vital2.png") +CADAVER = os.path.join(CUCARACHAIMAGENES, "muerta.png") +MUERTE = os.path.join(CUCARACHAIMAGENES, "muerte1.png") + +MUSICA1 = os.path.join(CUCARACHASONIDOS, "musica.ogg") +MUSICA2 = os.path.join(CUCARACHASONIDOS, "musica2.ogg") + +FONDO4 = os.path.join(CUCARACHAIMAGENES, "fondo4.png") +LOGO = os.path.join(CUCARACHAIMAGENES, "portada.png") + +# Interfaz +FONDO = os.path.join(CUCARACHAIMAGENES, "fondo.png") +PAN = os.path.join(CUCARACHAIMAGENES, "pan.png") +JARRA = os.path.join(CUCARACHAIMAGENES, "jarra.png") +AGUA = os.path.join(CUCARACHAIMAGENES, "agua.png") + +# Libreta de lectura +FONDO_LIBRO = os.path.join(ICONOS, "libreta.png") + +# Iconos generales +ICONOSAUDIO = [os.path.join(ICONOS, "audio1.png"), os.path.join(ICONOS, "audio2.png")] + +# Lecturas +import CUCARACHA +from CUCARACHA.Lectura import MUDA as leccionmuda +from CUCARACHA.Lectura import REPRODUCCION as leccionreproduccion +from CUCARACHA.Lectura import LECTURACICLOVITAL as lecturaciclovital +from CUCARACHA.Lectura import LECTURAMUERTE as lecturamuerte +from CUCARACHA.Lectura import LECTURAPLAGA as LecturaPlaga +from CUCARACHA.Lectura import LECTURAENDGAME as endgame +from CUCARACHA.Lectura import LECTURASEXTRAS as lecturasextras + +LECTURAMUDA = leccionmuda +LECTURAREPRODUCCION = leccionreproduccion +LECTURACICLOVITAL = lecturaciclovital +LECTURAMUERTE = lecturamuerte +LECTURAPLAGA = LecturaPlaga +LECTURAENDGAME = endgame +LECTURASEXTRAS = lecturasextras |