コード例 #1
0
 def __init__(self, x, y, w, h, vel=(0, 0)):
     GameObject.__init__(x, y, w, h)
     self.color = choice('orange', 'pink')
     self.velocity = vel
     self.x = x
     self.y = y
     self.dx = 1
     self.dy = 1