diff options
author | Gonzalo Odiard <gonzalo@nautilus.localdomain> | 2009-11-10 02:14:52 (GMT) |
---|---|---|
committer | Gonzalo Odiard <gonzalo@nautilus.localdomain> | 2009-11-10 02:14:52 (GMT) |
commit | 7ffb4ef29fcbd040fb708a02d4d381ede7d25a8b (patch) | |
tree | c0ad45f7d1506d74d919b14aced8db12e73b639e /World.py | |
parent | 4add86580c9ed00bc2d9df9d5fc3a692dc0fb721 (diff) |
modifico disposicion de controles para queentren en la pantalla de la xo
comienzo señalizacion de eventos para poder visualizar muertes o naciomientos
Diffstat (limited to 'World.py')
-rw-r--r-- | World.py | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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 |