Changes

→‎Making changes: add 'data' section, simplify header, correction
Line 59: Line 59:     
==Making changes==
 
==Making changes==
===Spritesheets, tilesheets, or portraits===
+
===Data===
 +
Each data XNB has its own format. See the documentation at [[Modding:Index#Advanced topics]].
 +
 
 +
===Images===
 
[[File:Modding - creating an XNB mod - example tilesheet.png|thumb|An example tilesheet, which consists of a grid of tiles like this: [[File:Modding - creating an XNB mod - example tile 1.png]]]]
 
[[File:Modding - creating an XNB mod - example tilesheet.png|thumb|An example tilesheet, which consists of a grid of tiles like this: [[File:Modding - creating an XNB mod - example tile 1.png]]]]
Definitions:
+
A few definitions:
* A '''spritesheet''' is a PNG file containing small images in a regular grid pattern. Each square in the spritesheet's grid pattern is called a '''sprite'''. For example, each in-game item has a sprite in <tt>Content\Maps\spring_objects.xnb</tt>.
+
* A '''spritesheet''' is a PNG file containing small images (usually in a regular grid pattern). Each square in the spritesheet's grid pattern is called a '''sprite'''. For example, each in-game item has a sprite in <tt>Content\Maps\spring_objects.xnb</tt>.
 
* A '''tilesheet''' is a synonym for spritesheet when used for map tiles. In a tilesheet, each square is called a ''tile'' and is 16×16 pixels.
 
* A '''tilesheet''' is a synonym for spritesheet when used for map tiles. In a tilesheet, each square is called a ''tile'' and is 16×16 pixels.
 
* A '''portrait''' is a sprite from the <tt>Content\Characters\*.xnb</tt> spritesheets.
 
* A '''portrait''' is a sprite from the <tt>Content\Characters\*.xnb</tt> spritesheets.
translators
8,411

edits