Ejemplo n.º 1
0
 def __init__(self, speed, height, direction):
     super(Jump, self).__init__(direction)
     speed = tiles_to_pixels(speed)
     height = jump_height_to_jump_speed(height)
     self.parameters = {'speed': speed,
                        'jump_height': height}
Ejemplo n.º 2
0
 def set_position(self, pos):
     val = tiles_to_pixels(pos)
     self.position = val
     self.cshape.center = val
Ejemplo n.º 3
0
 def __init__(self, speed, direction):
     super(Fall, self).__init__(direction)
     speed = tiles_to_pixels(speed)
     self.parameters = {'speed': speed}