Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/World.py
diff options
context:
space:
mode:
Diffstat (limited to 'World.py')
-rw-r--r--World.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/World.py b/World.py
index 603f8a6..9f8dd50 100644
--- a/World.py
+++ b/World.py
@@ -2,13 +2,15 @@
### GPL License - http://www.gnu.org/copyleft/gpl.html
# inicializacion
-MARGEN = 10
+MARGEN = 0
SIZE_WORLD = 800 # 700
CANT_TILES = 25 # 30
print "*** calculo SIZE "
SIZE_TILE = int((SIZE_WORLD - MARGEN * 2) / CANT_TILES)
print "Size tile:", SIZE_TILE
+EVENT_DEATH = 10
+
class RabbitData:
edadMaxima = 100
madurezSexual = 20
@@ -18,6 +20,12 @@ class RabbitData:
maxFrecuenciaAlimentacion = 1
maxNumeroCrias = 5
+class WorldEvent:
+ def __init__ (self,x,y,event):
+ self.x = x
+ self.y = y
+ self.event = event;
+
class FoxData:
edadMaxima = 150
@@ -34,6 +42,7 @@ class World:
initialFoxs = 10
playState = False
state = []
+ events = []
animals = []
rain_value = 1