Changes

Jump to navigation Jump to search
Line 301: Line 301:     
===Sitting on non-furniture chairs===
 
===Sitting on non-furniture chairs===
Players can sit on chairs that are part of the map. This works by checking the tile on the <tt>Buildings</tt> layer, and comparing its tilesheet and tilesheet index to the data in <tt>Data\ChairTiles</tt>. That file uses this format:
+
Players can sit on chairs that are part of the map. This works by checking the tile on the <tt>Buildings</tt> layer, and comparing its tilesheet and tilesheet index to the data in <tt>Data\ChairTiles</tt>.
   −
<pre>
+
Each entry has a key in the form <code>sheet filename/tile X/tile Y</code>:
Key: Sheet filename/Tile X/Tile Y
+
{| class="wikitable"
Value: Width in tiles/Height in tiles/Direction/Type/Tile X in ChairTiles/Tile Y in ChairTiles/Seasonal/(Optional)Alternate tile sheet asset
+
|-
</pre>
+
! field
 +
! description
 +
|-
 +
| sheet filename
 +
| The ''file name'' of the tilesheet, without the file extension. For example, for a tilesheet loaded from <code>assets/some-tilesheet.png</code>, this should be <code>some-tilesheet</code>.
 +
|-
 +
| tile X<br />tile Y
 +
| The tile's X and Y position in the map tilesheet, starting at zero.
 +
|}
 +
 
 +
And a value in the form <code>width in tiles/height in tiles/direction/type/draw tile X/draw tile Y/is seasonal/alternate tilesheet</code>:
 +
{| class="wikitable"
 +
|-
 +
! field
 +
! description
 +
|-
 +
| width in tiles<br />height in tiles
 +
| The size of the seat in tiles. For example, a width of 2 lets the player sit on the next tile to the right of it too.
 +
|-
 +
| direction
 +
| The direction the player should face when sitting. The possible values are <tt>down</tt>, <tt>left</tt>, <tt>right</tt>, <tt>up</tt>, or <tt>opposite</tt>. Any other value defaults to <tt>up</tt>.
 +
|-
 +
| type
 +
| An arbitrary seat code (like <tt>playground</tt> or <tt>ccdesk</tt>), which affects hardcoded game logic for specific seats in the game. You can specify an invalid value like <tt>default</tt> to ignore this.
 +
|-
 +
| draw tile X<br />draw tile Y
 +
| The X and Y position in <tt>TileSheets\ChairTiles</tt> (or the custom tilesheet) to draw when the player is sitting, starting at 0. If the width and/or height are more than 1, this is the position of the top-left tile.
 +
|-
 +
| is seasonal
 +
| Whether to draw seasonal variants when sitting. If enabled, the {{t|draw tile X}} and {{t|draw tile Y}} are offset by one width for each season. In other words, the spring/summer/fall/winter sprites should appear in the draw tilesheet directly adjacent, moving rightward in that order.
 +
|-
 +
| alternate tilesheet
 +
| The tilesheet from which to get the draw tiles, instead of <tt>TileSheets\ChairTiles</tt>.
 +
|}
    
===Custom hairstyles===
 
===Custom hairstyles===
translators
8,445

edits

Navigation menu