def __init__( self, name, control_map ): ControlledActor.__init__( self, name, control_map ) self.data = DataFile.loadYAML( "data/actors/player.yml" ) self.sprite = AnimatedSprite( self.data['Sprites']['one'] )
def __init__( self, file ): self.file = "data/controls/" + file + ".yml" self.data = DataFile.loadYAML( self.file ) '''if f.keyboard: