示例#1
0
    def move(self):
        self.level4A.move(speed=Sizer.get_screen_speed(), total_slides=2)
        self.level4B.move(speed=Sizer.get_screen_speed(), total_slides=2)

        self.level3A.move(speed=Sizer.get_screen_speed() -1, total_slides=2)
        self.level3B.move(speed=Sizer.get_screen_speed() -1, total_slides=2)

        self.level2A.move(speed=Sizer.get_screen_speed() -2, total_slides=3)
        self.level2B.move(speed=Sizer.get_screen_speed() -2, total_slides=3)
        self.level2C.move(speed=Sizer.get_screen_speed() -2, total_slides=3)

        self.level1A.move(speed=Sizer.get_screen_speed() -4, total_slides=3)
        self.level1B.move(speed=Sizer.get_screen_speed() -4, total_slides=3)
        self.level1C.move(speed=Sizer.get_screen_speed() -4, total_slides=3)
示例#2
0
 def move(self):
     self.y -= Sizer.get_screen_speed() / 2
     self.image.pos = (self.x, self.y)