Esempio n. 1
0
 def __init__(self,x,y):
     Black_Hole.__init__(self,x,y)
     self._speed = 5
     self.set_dimension(30, 30)
     self.set_angle(pi/4)
     self._color = 'green'
     self._eating = False
     self._counter = 0
Esempio n. 2
0
 def __init__(self, x, y):
     Black_Hole.__init__(self, x, y)
     self.randomize_angle()
     Mobile_Simulton.__init__(self,
                              x,
                              y,
                              Black_Hole.radius,
                              Black_Hole.radius,
                              self._angle,
                              speed=5)
Esempio n. 3
0
 def __init__(self, x, y, width, height, color):
     
     Black_Hole.__init__(self, x, y, width, height, color)
     
     self._x = x
     self._y = y
     self._width = width * 2
     self._height = height * 2
     self._color = color
     self.temp_counter = 0
     self.eaten_counter = 0
     self.obj_eaten = set()
Esempio n. 4
0
 def __init__(self, x, y):
     Black_Hole.__init__(self, x, y)
     self._counter_constant = 30
Esempio n. 5
0
 def __init__(self, x, y):
     Black_Hole.__init__(self, x, y)
     self.counter = 0
Esempio n. 6
0
 def __init__(self,x,y):
     Black_Hole.__init__(self,x,y)
     self._time_starved = 0
     self._color = "GRAY"
Esempio n. 7
0
 def __init__(self, x, y):
     Black_Hole.__init__(self, x, y)
     self._color = "#add8e6"
Esempio n. 8
0
 def __init__(self, x, y):
     Black_Hole.__init__(self, x, y)
     self.counter = Pulsator.count
     self.eatenNum = 0 # to keep previous size
Esempio n. 9
0
 def __init__(self, x, y):
     Black_Hole.__init__(self, x, y)
     self._speed = 5
     self._angle = 0
     self._color = 'yellow'
 def __init__(self,x,y):
     Black_Hole.__init__(self,x,y)
     self.radius = randint(20, 40)/2
 def __init__(self,x,y,size = 30):
     Black_Hole.__init__(self,x,y)
     self.set_dimension(size, size)
     self._image = PhotoImage(Image.open('space_amoeba.gif').convert('RGBA').resize((size, size), Image.ANTIALIAS))
     self.radius = (self._image.height()/2)+((self._image.width()**2)/(8 * self._image.height()))
     self._counter = 1
Esempio n. 12
0
 def __init__(self, x, y):
     Black_Hole.__init__(self, x, y)
     self._pulse_count = 0
Esempio n. 13
0
 def __init__(self,x,y):
     self._counter = 0
     Black_Hole.__init__(self,x,y)
Esempio n. 14
0
 def __init__(self,x,y,width,height):
     Black_Hole.__init__(self,x,y,width,height)
     self.counter = 0
Esempio n. 15
0
 def __init__(self, x, y):
     self.counter = 0
     Black_Hole.__init__(self, x, y)
 def __init__(self, x, y):
     self.time_count = 0
     Black_Hole.__init__(self, x, y)
Esempio n. 17
0
 def __init__(self, x, y):
     global counter
     Black_Hole.__init__(self, x, y)
     self.pulsator_counter = counter
Esempio n. 18
0
 def __init__(self, x, y):
     Black_Hole.__init__(self, x, y)
     Mobile_Simulton.__init__(self, x, y, 2*self.radius, 2*self.radius, 0, 5)
     self.randomize_angle()
     self.color = 'Orange'
     self.end_of_chain = self
Esempio n. 19
0
 def __init__(self,x,y):
     Black_Hole.__init__(self, x, y,width=10,height=10)
     Mobile_Simulton.__init__(self, x, y, width=15, height=15, angle=0, speed=5)
Esempio n. 20
0
 def __init__(self, x, y):
     Black_Hole.__init__(self, x, y)
     self.radius = Black_Hole.RADIUS
Esempio n. 21
0
 def __init__(self, x, y):
     #what about color
     Black_Hole.__init__(self, x, y)
     self._counter = 0
     self.count = 0
Esempio n. 22
0
 def __init__(self, x, y):
     Black_Hole.__init__(self, x, y)
     self.pulsator_counter = 0
Esempio n. 23
0
 def __init__(self, x, y):
     Black_Hole.__init__(self, x, y)
     self.radius = 10
     self.color = 'black'
     self.cycles = 0
     self.counter = 30
Esempio n. 24
0
 def __init__(self, x, y):
     Black_Hole.__init__(self, x, y)
     self.counter = Pulsator.counter
Esempio n. 25
0
 def __init__(self, x, y):
     Black_Hole.__init__(self,x,y)
     Mobile_Simulton.__init__(self,x,y,*self.get_dimension(),0,5)
     self.randomize_angle()
     self.count = 0
 def __init__(self,x,y):
     self._truth=0
     Black_Hole.__init__(self, x, y)
 def __init__(self, x, y):
     Black_Hole.__init__(self, x, y)
Esempio n. 28
0
 def __init__(self, x, y):
     Black_Hole.__init__(self, x, y)
     self.count = 0
Esempio n. 29
0
 def __init__(self, x, y):
     self._counting_object = 0
     Black_Hole.__init__(self, x, y)
 def __init__(self,x,y):
     Black_Hole.__init__(self,x,y)
     self._color = 'black'
     self._time_between_meals = 0
Esempio n. 31
0
 def __init__(self, x, y):
     Black_Hole.__init__(self, x, y)
     self.pulsator_counter = 0
Esempio n. 32
0
 def __init__(self, x, y):
     Black_Hole.__init__(self, x, y)
     self._counter = 0
Esempio n. 33
0
 def __init__(self, x, y):
     self._radius = 10
     Black_Hole.__init__(self, x, y)
     self._counter = 0