Theme: Explain multiple buried rectangles in 0.9.23
authorWuzzy
Mon, 24 Apr 2017 12:33:06 +0100
changeset 990 606b2d0c5a09
parent 989 6d7740d5a85e
child 991 11b5a903e987
Theme: Explain multiple buried rectangles in 0.9.23
Theme.wiki
--- a/Theme.wiki	Thu Apr 20 04:15:59 2017 +0100
+++ b/Theme.wiki	Mon Apr 24 12:33:06 2017 +0100
@@ -164,18 +164,25 @@
 There may be multiple object keys in the file, each one representing one land object.
 
  * `filename`: The object’s filename (without the “.png”). Case-sensitive.
- * `max`: The maximum number of this object that may be generated in a map (must by between 1 and 32)
- * `buriedrec`: A rectangle that must be buried in the terrain (`left, top, width, height`). In version 0.9.23, if all 4 values are 0, the object will be placed on top of the water
+ * `max`: The maximum number of this object that may be generated in a map (must by between 1 and 32
+ * `buriedrects_num`: (optional): Number of rectangles that must be buried in the terrain. If this value is ommitted, a value of 1 is assumed. Only available in version 0.9.23 or later
+ * `buriedrects`: A rectangle that must be buried in the terrain (`left, top, width, height`). In version 0.9.23, if all 4 values are 0, the object will be placed on top of the water
  * `minvisible`: The minimum amount of rectangles that must be visible
- * `visiblerec`: list of the rectangles for being visible (`left, top, width, height`)
+ * `visiblerects`: List of the rectangles for being visible (`left, top, width, height`)
+
+Syntax for version 0.9.22, or when you only need 1 buried rectangle:
 
 <code>Values: filename, max, buriedrec, minvisible, visiblerec</code>
 
-Here's an example where `visiblerec` and the `buriedrec` are visualized on an ancient picture:
+Syntax when using multiple buried rectangles in 0.9.23:
+
+<code>Values: filename, max, buriedrects_num, buriedrects, minvisible, visiblerects</code>
+
+Here's an example where `visiblerects` and the `buriedrects` are visualized on an ancient picture:
 
 https://hedgewars.org/images/avematantheme/hw-avematan.rects.png
 
-The large rectangle shows a `visiblerec` and the small one shows a `buriedrec`.
+The large rectangle shows a `visiblerects` and the small one shows a `buriedrects`.
 
 == `spray` ==
 There may be several spray keys in the file, each one representing one spray object.