Changes

Jump to navigation Jump to search
→‎Spritesheet layout: + pre-1.6 vanilla layouts
Line 389: Line 389:     
==Spritesheet layout==
 
==Spritesheet layout==
 +
===Explanation===
 
Each farm animal's spritesheet must have exactly 4 columns, and at least 5–7 rows (depending on the data fields). The sprite size depends on the [[#Audio & sprite|<samp>SpriteWidth</samp> and <samp>SpriteHeight</samp>]] fields; for example, the default sprite width of 16 pixels means the spritesheet must be exactly 4 × 16 = 64 pixels wide.
 
Each farm animal's spritesheet must have exactly 4 columns, and at least 5–7 rows (depending on the data fields). The sprite size depends on the [[#Audio & sprite|<samp>SpriteWidth</samp> and <samp>SpriteHeight</samp>]] fields; for example, the default sprite width of 16 pixels means the spritesheet must be exactly 4 × 16 = 64 pixels wide.
   Line 418: Line 419:  
| 11 (move up)
 
| 11 (move up)
 
|-
 
|-
| 8 (''unused'')
+
| 12 (''unused'')
| 9 (unique down)
+
| 13 (unique down)
| 10 (unique right)
+
| 14 (unique right)
| 11 (unique up)
+
| 15 (unique up)
 
|-
 
|-
| 12 (eat 1)
+
| 16 (eat 1)
| 13 (eat 1)
+
| 17 (eat 1)
| 14 (eat 1)
+
| 18 (eat 1)
| 15 (eat 1)
+
| 19 (eat 1)
 
|}
 
|}
   Line 462: Line 463:  
| 23 (unique left 2)
 
| 23 (unique left 2)
 
|-
 
|-
| 12 (eat 1)
+
| 24 (eat 1)
| 13 (eat 1)
+
| 25 (eat 1)
| 14 (eat 1)
+
| 26 (eat 1)
| 15 (eat 1)
+
| 27 (eat 1)
 
|}
 
|}
    +
===Pre-1.6 vanilla layouts===
 +
Before Stardew Valley 1.6, there were two main spritesheet layouts depending on whether the animal lived in a [[barn]] or [[coop]]. If you want to match the previous spritesheet layouts (e.g. to update a pre-1.6 custom animal), the options to set are:
 +
<syntaxhighlight lang="js">
 +
// for barn animals
 +
"UseFlippedRightForLeft": true,
 +
"UseDoubleUniqueAnimationFrames": false
    +
// for coop animals
 +
"UseFlippedRightForLeft": false,
 +
"UseDoubleUniqueAnimationFrames": true
 +
</syntaxhighlight>
 
[[Category:Modding]]
 
[[Category:Modding]]
    
[[ru:Модификации:Животные]]
 
[[ru:Модификации:Животные]]
translators
8,445

edits

Navigation menu