示例#1
0
    def move(self):
        if self.get_big:
            if self.rect.w > 100:
                self.get_big = 0
                self.dx = -5

        else:
            if self.rect.w < 20:
                self.get_big = 1
                self.dx = 5

        self.stretch(dx=self.dx, keepAspectRatio=1)

        Circle.move(self)
示例#2
0
 def move(self):
     x, y = self.get_position()
     #print 'moving', x, y
     Circle.move(self)