163 == `object` == |
163 == `object` == |
164 There may be multiple object keys in the file, each one representing one land object. |
164 There may be multiple object keys in the file, each one representing one land object. |
165 |
165 |
166 * `filename`: The object’s filename (without the “.png”). Case-sensitive. |
166 * `filename`: The object’s filename (without the “.png”). Case-sensitive. |
167 * `max`: The maximum number of this object that may be generated in a map (must by between 1 and 32 |
167 * `max`: The maximum number of this object that may be generated in a map (must by between 1 and 32 |
168 * `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 |
168 * `buriedrects_num`: (optional): Number of rectangles that must be buried in the terrain. If this value is ommitted, a value of 1 is assumed |
169 * `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 |
169 * `buriedrects`: A rectangle that must be buried in the terrain (`left, top, width, height`). If all 4 values are 0, the object will be placed on top of the water |
170 * `minvisible`: The minimum amount of rectangles that must be visible |
170 * `minvisible`: The minimum amount of rectangles that must be visible |
171 * `visiblerects`: List of the rectangles for being visible (`left, top, width, height`) |
171 * `visiblerects`: List of the rectangles for being visible (`left, top, width, height`) |
172 |
172 |
173 Syntax for version 0.9.22, or when you only need 1 buried rectangle: |
173 Syntax when you only need 1 buried rectangle: |
174 |
174 |
175 <code>Values: filename, max, buriedrec, minvisible, visiblerec</code> |
175 <code>Values: filename, max, buriedrec, minvisible, visiblerec</code> |
176 |
176 |
177 Syntax when using multiple buried rectangles in 0.9.23: |
177 Syntax when you want to use multiple buried rectangles: |
178 |
178 |
179 <code>Values: filename, max, buriedrects_num, buriedrects, minvisible, visiblerects</code> |
179 <code>Values: filename, max, buriedrects_num, buriedrects, minvisible, visiblerects</code> |
180 |
180 |
181 Here's an example where `visiblerects` and the `buriedrects` are visualized on an ancient picture: |
181 Here's an example where `visiblerects` and the `buriedrects` are visualized on an ancient picture: |
182 |
182 |