Creature animation; animation.LoadFromDataFile("walk.anim"); animation.SetActiveAnimation("walk"); MapPoints mapPoints = animation.GetMap()->getMapPoints();
CreatureFileLoaderConfig config; config.texture_packer_path = "/usr/local/bin/TexturePacker"; config.use_path_as_texture_name = true; CreatureAnimation animation; animation.LoadFromJSON("walk_animation.json", "walk"); animation.SetActive(true); MapData * mapData = animation.GetMap()->getMapData();In this example, the CreatureAnimation object is loaded from a JSON file and the "walk" animation is set as the active animation. The `GetMap()` function is called to retrieve the map object and its `getMapData()` method is used to get the current data of the creature's body parts. The CreatureFileLoaderConfig object is created to configure the Creature file loader and provide the path to TexturePacker. Package Library: Creature Animation