Template:Sprite/Farmer: Difference between revisions

Corrected sheetWidth and sheetHeight using the wrong numbers, readjusted all sprite positions, added "def" expression & switched noOfRows + noOfColumns for every expression in order to handle how the sprite sheet is inherently off-center
m (Changed expression names to better describe what they are)
(Corrected sheetWidth and sheetHeight using the wrong numbers, readjusted all sprite positions, added "def" expression & switched noOfRows + noOfColumns for every expression in order to handle how the sprite sheet is inherently off-center)
Line 1: Line 1:
<includeonly>{{Sprite
{{Sprite
  |ratio={{{ratio|0.58}}}
  |ratio={{{ratio|2}}}
  |sheetWidth=368
  |sheetWidth=184
  |sheetHeight=45
  |sheetHeight=138
|noOfRows=0.5
|noOfColumns=3.65
  |row={{#switch: {{{expr|}}}
  |row={{#switch: {{{expr|}}}
  | def = 1
   | hum = 1
   | hum = 1
   | cry = 2.05
   | cry = 2
   | robo = 2.05
   | robo = 3
   | scared = 3.1
   | scared = 3
   | {{{row|1}}}
   | {{{row|1}}}
  }}
  }}
  |col={{#switch: {{{expr|}}}
  |col={{#switch: {{{expr|}}}
   | hum = 2.8
  | def = 2.25
   | cry = 1.95
   | hum = 3.5
   | robo = 2.9
   | cry = 2.25
   | scared = 1.98
   | robo = 3
   | {{{col|1.9}}}
   | scared = 2.25
   | {{{col|1}}}
}}
|noOfRows={{#switch: {{{expr|}}} <!-- "noOfRows" and "noOfColumns" are switched for every expression in order to center them properly without losing integrity of the overall template-->
  | def = 3
  | hum = 3
  | cry = 3
  | robo = 3
  | scared = 3
  | {{{noOfRows|3}}}
}}
|noOfColumns={{#switch: {{{expr|}}}
  | def = 5
  | hum = 5
  | cry = 5
  | robo = 4
  | scared = 5
  | {{{noOfColumns|4}}}
  }}
  }}
  |image=File:Farmer.png.png
  |image=File:Farmer.png.png
}}</includeonly><noinclude>{{documentation}}</noinclude>
}}
731

edits