Changes

Jump to navigation Jump to search
651 bytes added ,  17:33, 16 December 2017
+ potential issues section
Line 547: Line 547:  
<small>¹ Tile properties are handled throughout the codebase using <tt>GameLocation::doesTileHaveProperty</tt>. Actions and touch actions are handled by <tt>GameLocation::performAction</tt> and <tt>GameLocation::performTouchAction</tt> respectively. Emote IDs are listed as <tt>Character</tt> constants.</small><br />
 
<small>¹ Tile properties are handled throughout the codebase using <tt>GameLocation::doesTileHaveProperty</tt>. Actions and touch actions are handled by <tt>GameLocation::performAction</tt> and <tt>GameLocation::performTouchAction</tt> respectively. Emote IDs are listed as <tt>Character</tt> constants.</small><br />
 
<small>² The <tt>T</tt> value (short for ''true'') is conventional, but any non-empty value will work too.</small>
 
<small>² The <tt>T</tt> value (short for ''true'') is conventional, but any non-empty value will work too.</small>
 +
 +
==Potential issues==
 +
The game makes some assumptions about maps which may break for modded maps. These are the known issues:
 +
{| class="wikitable"
 +
|-
 +
! affected maps
 +
! issue
 +
|-
 +
| <tt>Farm</tt>
 +
| The farm's <tt>Paths</tt> layer must have at least one tile with index 22 (grass spawn). This is used to initialise the grass code when the save is loaded, even if no grass is spawned.<ref>The grass sound is set in <tt>Grass::loadSprite</tt>, which is called from <tt>GameLocation::loadObjects</tt> if the <tt>Paths</tt> layer has tile index 22. (The game spawns a grass for each such tile, and later removes them.)</ref>
 +
|}
 +
 +
<small><references /></small>
    
[[Category:Modding]]
 
[[Category:Modding]]
translators
8,403

edits

Navigation menu