예제 #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
파일: special.py 프로젝트: solomc1/python
 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