Beispiel #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
Beispiel #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)
Beispiel #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()
Beispiel #4
0
 def __init__(self, x, y):
     Black_Hole.__init__(self, x, y)
     self._counter_constant = 30
 def __init__(self, x, y):
     Black_Hole.__init__(self, x, y)
     self.counter = 0
Beispiel #6
0
 def __init__(self,x,y):
     Black_Hole.__init__(self,x,y)
     self._time_starved = 0
     self._color = "GRAY"
Beispiel #7
0
 def __init__(self, x, y):
     Black_Hole.__init__(self, x, y)
     self._color = "#add8e6"
Beispiel #8
0
 def __init__(self, x, y):
     Black_Hole.__init__(self, x, y)
     self.counter = Pulsator.count
     self.eatenNum = 0 # to keep previous size
Beispiel #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
Beispiel #12
0
 def __init__(self, x, y):
     Black_Hole.__init__(self, x, y)
     self._pulse_count = 0
Beispiel #13
0
 def __init__(self,x,y):
     self._counter = 0
     Black_Hole.__init__(self,x,y)
Beispiel #14
0
 def __init__(self,x,y,width,height):
     Black_Hole.__init__(self,x,y,width,height)
     self.counter = 0
Beispiel #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)
Beispiel #17
0
 def __init__(self, x, y):
     global counter
     Black_Hole.__init__(self, x, y)
     self.pulsator_counter = counter
Beispiel #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
Beispiel #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)
Beispiel #20
0
 def __init__(self, x, y):
     Black_Hole.__init__(self, x, y)
     self.radius = Black_Hole.RADIUS
Beispiel #21
0
 def __init__(self, x, y):
     #what about color
     Black_Hole.__init__(self, x, y)
     self._counter = 0
     self.count = 0
Beispiel #22
0
 def __init__(self, x, y):
     Black_Hole.__init__(self, x, y)
     self.pulsator_counter = 0
Beispiel #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
Beispiel #24
0
 def __init__(self, x, y):
     Black_Hole.__init__(self, x, y)
     self.counter = Pulsator.counter
Beispiel #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)
Beispiel #28
0
 def __init__(self, x, y):
     Black_Hole.__init__(self, x, y)
     self.count = 0
Beispiel #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
Beispiel #31
0
 def __init__(self, x, y):
     Black_Hole.__init__(self, x, y)
     self.pulsator_counter = 0
Beispiel #32
0
 def __init__(self, x, y):
     Black_Hole.__init__(self, x, y)
     self._counter = 0
Beispiel #33
0
 def __init__(self, x, y):
     self._radius = 10
     Black_Hole.__init__(self, x, y)
     self._counter = 0