Changes

Jump to navigation Jump to search
update for tmx support
Line 31: Line 31:     
// read a map file
 
// read a map file
Map map = helper.Content.Load<Map>("assets/map.tbin", ContentSource.ModFolder);
+
Map map = helper.Content.Load<Map>("assets/map.tmx", ContentSource.ModFolder);
    
// read a data file
 
// read a data file
Line 57: Line 57:  
| An image file. You can use this to load textures, spritesheets, tilesheets, etc.
 
| An image file. You can use this to load textures, spritesheets, tilesheets, etc.
 
|-
 
|-
| <tt>.tbin</tt>
+
| <tt>.tbin</tt> or <tt>.tmx</tt>
 
| <tt>xTile.Map</tt>
 
| <tt>xTile.Map</tt>
 
| A map file, which can be used to create or modify an in-game location. SMAPI will automatically match tilesheets to image files in the same folder as the map if they exist; otherwise the game will check the <tt>Content</tt> folders for them.
 
| A map file, which can be used to create or modify an in-game location. SMAPI will automatically match tilesheets to image files in the same folder as the map if they exist; otherwise the game will check the <tt>Content</tt> folders for them.
Line 126: Line 126:  
manifest.json
 
manifest.json
 
assets/
 
assets/
   Farm.tbin
+
   Farm.tmx
 
   fall_customTilesheet.png
 
   fall_customTilesheet.png
 
   spring_customTilesheet.png
 
   spring_customTilesheet.png
Line 149: Line 149:  
     public T Load<T>(IAssetInfo asset)
 
     public T Load<T>(IAssetInfo asset)
 
     {
 
     {
         return this.Helper.Content.Load<T>("assets/Farm.tbin");
+
         return this.Helper.Content.Load<T>("assets/Farm.tmx");
 
     }
 
     }
 
}
 
}
translators
8,443

edits

Navigation menu