コード例 #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
ファイル: special.py プロジェクト: Zeronidan/Ball-Simulation
 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
ファイル: pulsator.py プロジェクト: wsaronam/Simulton
 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
ファイル: pulsator.py プロジェクト: victoriadlai/python-balls
 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
ファイル: pulsator.py プロジェクト: cmarch314/PythonProjects
 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'
コード例 #10
0
 def __init__(self,x,y):
     Black_Hole.__init__(self,x,y)
     self.radius = randint(20, 40)/2
コード例 #11
0
 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
ファイル: pulsator.py プロジェクト: shwilliams/ICS33
 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)
コード例 #16
0
 def __init__(self, x, y):
     self.time_count = 0
     Black_Hole.__init__(self, x, y)
コード例 #17
0
ファイル: pulsator.py プロジェクト: inistar/school-projects
 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
ファイル: pulsator.py プロジェクト: Zeronidan/Ball-Simulation
 def __init__(self, x, y):
     Black_Hole.__init__(self, x, y)
     self.pulsator_counter = 0
コード例 #23
0
ファイル: pulsator.py プロジェクト: brookedly/Python
 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
ファイル: special.py プロジェクト: kfarsany/undergraduate
 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
コード例 #26
0
 def __init__(self,x,y):
     self._truth=0
     Black_Hole.__init__(self, x, y)
コード例 #27
0
 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