Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Globals.py
blob: f5fb3b6c4900c81971469e7fe7f4de5c53b50e8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
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