示例#1
0
 def __init__(self, x, y, vx, vy):
     self.size = 500
     self.px = x
     self.py = y
     self.m = 20
     self.vx = vx
     self.vy = vy
     Circle.__init__(self, Point(self.px, self.py), self.m)
示例#2
0
 def __init__(self,
              graphWin,
              name,
              size,
              mass,
              pX,
              pY,
              orbitLineSize=0,
              fixed=False):
     Circle.__init__(self, Point(pX, pY), size)
     self.size = size
     self.mass = mass
     self.name = name
     self.speedX = 0
     self.speedY = 0
     self.fixed = fixed
     self.apoasis = -1
     self.periasis = -1
     self.orbitLine = []
     self.orbitLineSize = orbitLineSize
示例#3
0
文件: ball.py 项目: R-Hurl/Breakout
 def __init__(self, center, size, win):
     self.center = center
     self.size = size
     self.win = win
     Circle.__init__(self, (self.center), self.size)
     self.draw(win)
示例#4
0
 def __init__(self, location, velocity):
     Circle.__init__(self, location, dotSize)
     self.velocity = velocity
     self.setFill(dotColor)
示例#5
0
 def __init__(self, center, radius, velocity):
     Circle.__init__(self, center, radius)
     self.vel = velocity
     self.left = self.vel[0] < 0
     self.down = self.vel[1] < 0
     self.setFill("white")