LuaAPI.wiki
changeset 917 c05279ae1ac2
parent 916 a01743eb08f1
child 918 87e1d0a11e99
equal deleted inserted replaced
916:a01743eb08f1 917:c05279ae1ac2
   169 || `Explosives` || `2` || Number of barrels being placed on a medium-sized map ||
   169 || `Explosives` || `2` || Number of barrels being placed on a medium-sized map ||
   170 || `SuddenDeathTurns` || `15` || Turns until Sudden Death begins ||
   170 || `SuddenDeathTurns` || `15` || Turns until Sudden Death begins ||
   171 || `WaterRise` || `47` || Height of water rise in pixels for each Sudden Death turn ||
   171 || `WaterRise` || `47` || Height of water rise in pixels for each Sudden Death turn ||
   172 || `HealthDecrease` || `5` || Amount of health decreased on each turn in Sudden Death ||
   172 || `HealthDecrease` || `5` || Amount of health decreased on each turn in Sudden Death ||
   173 || `Goals` || `""` || Use this to add additional text to the goal text popup shown at the beginning and when using the quit or pause keys. The text is added to the default text which usually explains the game modifiers and does not replace it. Use `|` for line breaks. Also, all text before and including a `:` in a line will be highlighted. See also `ShowMission`. ||
   173 || `Goals` || `""` || Use this to add additional text to the goal text popup shown at the beginning and when using the quit or pause keys. The text is added to the default text which usually explains the game modifiers and does not replace it. Use `|` for line breaks. Also, all text before and including a `:` in a line will be highlighted. See also `ShowMission`. ||
       
   174 || `WorldEdge` || `weNone` || Type edges being used at the left and right sides of the terrain (see below). Available since 0.9.23. ||
   174 || `ScreenWidth` || _N/A_ || Width of the Hedgewars window or screen ||
   175 || `ScreenWidth` || _N/A_ || Width of the Hedgewars window or screen ||
   175 || `ScreenHeight` || _N/A_ || Height of the Hedgewars window or screen ||
   176 || `ScreenHeight` || _N/A_ || Height of the Hedgewars window or screen ||
   176 
   177 
   177 The proper way to disable Sudden Death is by setting both `WaterRise` and `HealthDecrease` to `0`.
   178 The proper way to disable Sudden Death is by setting both `WaterRise` and `HealthDecrease` to `0`.
   178 
   179 
   179 If you want to add teams or hogs manually, you have to do it here. If you want to draw your own map using `AddPoint` and `FlushPoints`, you have to do this within this function as well.
   180 If you want to add teams or hogs manually, you have to do it here. If you want to draw your own map using `AddPoint` and `FlushPoints`, you have to do this within this function as well.
       
   181 
       
   182 ==== `WorldEdge` ====
       
   183 The value of `WorldEdge` can have the following values:
       
   184 
       
   185 || *Identifier* || *Meaning* ||
       
   186 || `weNone` || No world edges ||
       
   187 || `weBounce` || Bouncy world edges ||
       
   188 || `weWrap` || World wraps around at the edges ||
       
   189 || `weSea` || Ocean world edges ||
   180 
   190 
   181 === <tt>onGameStart()</tt> ===
   191 === <tt>onGameStart()</tt> ===
   182 This function is called when the first round starts.
   192 This function is called when the first round starts.
   183 
   193 
   184 Can be used to show the mission and for more setup, for example initial target spawning.
   194 Can be used to show the mission and for more setup, for example initial target spawning.