Updated Sample Code (markdown)

Josh Callebaut 2016-02-02 13:47:08 -08:00
parent 976163685e
commit f31068045e

@ -22,8 +22,13 @@ When filling in the sample code for a level, there are a few neat tips to keep i
If the level is attempting to teach a concept or guide players through writing code, it is important to direct the player's attention to where the code should be inserted. In each blank area below a comment, an arrow will display.
* **Note:** CodeCombat allows for one block of comments at the start of the sample code before adding an arrow below all comments with an empty space below them.
[<img width="50%" src="http://files.codecombat.com/wiki-images/hint_arrow.png"/>](http://files.codecombat.com/wiki-images/hint_arrow.png)
### Change Arrow
There are some levels where the player is given a hint in the form of pre-existing code. Often times this code is wrong, or, generally should be changed or removed if the user is to progress. Use the `∆` (delta) symbol on the same line as the code and a hint arrow will point to the line until it has been changed.
[<img width="50%" src="http://files.codecombat.com/wiki-images/change_arrow.png"/>](http://files.codecombat.com/wiki-images/change_arrow.png)
### i18n Strings
Simply writing your sample code doesn't provide the Diplomats with access to the strings for translation. You will need to use a special string replacement structure to pull these comments out for translation.
Simply writing your sample code doesn't provide the Diplomats with access to the strings for translation. You will need to use a special string replacement structure to pull these comments out for translation.
[<img width="50%" src="http://files.codecombat.com/wiki-images/comment_string_example.png"/>](http://files.codecombat.com/wiki-images/comment_string_example.png)