Changes

Start sections, add a simple explanation
Line 3: Line 3:     
This page explains how mod creators can perform common tasks in SMAPI mods. (Note: this page is for interacting with the game itself, for SMAPI-provided tasks see  [[Modding:SMAPI APIs|SMAPI reference]])
 
This page explains how mod creators can perform common tasks in SMAPI mods. (Note: this page is for interacting with the game itself, for SMAPI-provided tasks see  [[Modding:SMAPI APIs|SMAPI reference]])
 +
 +
==Things to note==
 +
Many things in Stardew Valley are accessed through Game1. It is highly recommended to decompile the game source and look at how the game does things and then attempt to do it yourself. This is a general guide to point you to the right places in the code to look, it is not meant to give you the code.
 +
[[Modding:Creating a SMAPI mod]]
 +
//todo link to decompiling section
    
==Items==
 
==Items==
Line 14: Line 19:  
==Locations==
 
==Locations==
 
//todo describe section
 
//todo describe section
======
+
===TODO===
 +
//todo
 
==Player==
 
==Player==
 
//todo describe section
 
//todo describe section
Line 22: Line 28:  
//todo describe section
 
//todo describe section
 
===Banner Message===
 
===Banner Message===
//todo
+
Add a new HUDMessage to show [insert image] banner.
 +
<source lang="c#">
 +
Game1.addHUDMessage(new HUDMessage("MESSAGE", 3));
 +
</source>
 +
Optional parameters ''noIcon'' and ''timeLeft''
 +
The 3 is because ...?
 
==Menus==
 
==Menus==
 
//todo describe section
 
//todo describe section
Line 30: Line 41:  
//todo warning
 
//todo warning
 
==Other==
 
==Other==
===Add an animation===
+
===Add a small animation===
//todo
+
<source lang="c#">
 +
Game1.currentLocation.temporarySprites.Add(new TemporaryAnimatedSprite(...))
 +
</source>
 +
See TemporaryAnimatedSprite for more details
 
===Play a sound===
 
===Play a sound===
//todo
+
<source lang="c#">
 +
location.playSound("SOUND");
 +
</source>
 +
(e.g. "junimoMeep1")
 +
 
    
[[Category:Modding]]
 
[[Category:Modding]]
37

edits