Solarus Wiki

A wiki for the Solarus engine community

User Tools

Site Tools


tutorial:the_first_map

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
tutorial:the_first_map [2017/07/25 04:16]
digitalshadowhawk finished translating the from the equivalent french page
tutorial:the_first_map [2018/12/22 14:14] (current)
Line 157: Line 157:
 Information about what we have just done: we have just added an //if statement// in the display function of the title screen; in this if statement, there is the keyword **nil**, which means an empty value. This is the equivalent of null in PHP, Java, C, and many other programming languages. The only change we have made in the function we added in this chapter is that there is no longer the local keyword in front of ''​game = sol.main.load(“save1.dat”)''​ because we do not want to declare a new variable but use The one declared above in the file. Information about what we have just done: we have just added an //if statement// in the display function of the title screen; in this if statement, there is the keyword **nil**, which means an empty value. This is the equivalent of null in PHP, Java, C, and many other programming languages. The only change we have made in the function we added in this chapter is that there is no longer the local keyword in front of ''​game = sol.main.load(“save1.dat”)''​ because we do not want to declare a new variable but use The one declared above in the file.
  
-No exercise on this chapter! We'll do another on the next one, but for now just have fun with the tiles on a map: you have the basics to create ​mapsthat ​should at least be interesting to browse. You can still {{:​fr:​tutorial:​resultat_002.zip|download the resulting quest file}} if you wish.+No exercise on this chapter! We'll do another on the next one, but for now just have fun with the tiles on a map: you have the basics to create ​maps that should at least be interesting to browse. You can still {{:​fr:​tutorial:​resultat_002.zip|download the resulting quest file}} if you wish.
  
 [[{:​wiki:​arrow_left.png|width:​210px;​float:​left;​}fr:​tutorial:​getting_started|Chap. 1 : Getting Started]][[{:​wiki:​arrow_right.png|width:​210px;​float:​right;​}fr:​tutorial:​houses_and_forests|Chap. 3 : Houses and Forests]][[{:​wiki:​home.png|width:​203px;​}fr:​tutorial:​create_your_2d_game_with_solarus|Table of Contents]] [[{:​wiki:​arrow_left.png|width:​210px;​float:​left;​}fr:​tutorial:​getting_started|Chap. 1 : Getting Started]][[{:​wiki:​arrow_right.png|width:​210px;​float:​right;​}fr:​tutorial:​houses_and_forests|Chap. 3 : Houses and Forests]][[{:​wiki:​home.png|width:​203px;​}fr:​tutorial:​create_your_2d_game_with_solarus|Table of Contents]]
tutorial/the_first_map.1500949007.txt.gz · Last modified: 2018/12/22 14:14 (external edit)