Ejemplo n.º 1
0
        public LDTKMap(LDTKJson json)
        {
            world = json;

            foreach (TilesetDefinition tileset in world.Defs.Tilesets)
            {
                string path = GetMonoGameContentName(tileset.RelPath);
                Assets.LoadTexture(path, path);
            }
        }
Ejemplo n.º 2
0
 public LDTKMap Load(string filePath)
 {
     return(new LDTKMap(LDTKJson.FromJson(File.ReadAllText(filePath))));
 }