LuaGlobals.wiki
changeset 2132 11d16b0dbe49
parent 2131 53aadd31ca69
child 2168 6269280aafc1
--- a/LuaGlobals.wiki	Fri Mar 20 05:50:38 2020 +0100
+++ b/LuaGlobals.wiki	Fri Mar 20 05:54:51 2020 +0100
@@ -32,6 +32,8 @@
 || `TotalRounds` || Number of rounds that have passed. Equals `-1` if game has not started yet or hogs are still being placed. ||
 || `CurrentHedgehog` || The hedgehog gear that is currently in play ||
 || `AmmoTypeMax` || Maximum ammo type ID (useful to iterate through all ammo types, starting by 0) ||
+|| `ScreenWidth` || Width of the Hedgewars window or screen. Not available before `onGameInit` ||
+|| `ScreenHeight` || Height of the Hedgewars window or screen. Not available before `onGameInit` ||
 
 == !GameFlags ==
 The !GameFlags are used to store simple boolean settings of the game.
@@ -101,8 +103,6 @@
 || `HealthDecrease` || `5` || Amount of health decreased on each turn in Sudden Death ||
 || `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. The text supports the same special characters as in `ShowMission` ||
 || `WorldEdge` || `weNone` || Type edges being used at the left and right sides of the terrain (see below). ||
-|| `ScreenWidth` || _N/A_ || Width of the Hedgewars window or screen (read-only) ||
-|| `ScreenHeight` || _N/A_ || Height of the Hedgewars window or screen (read-only) ||
 
 The proper way to disable Sudden Death is by setting both `WaterRise` and `HealthDecrease` to `0`.