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