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}
def set_position(self, pos): val = tiles_to_pixels(pos) self.position = val self.cshape.center = val
def __init__(self, speed, direction): super(Fall, self).__init__(direction) speed = tiles_to_pixels(speed) self.parameters = {'speed': speed}