author | unC0Rr |
Mon, 03 Feb 2025 15:03:26 +0100 | |
changeset 16110 | ac8a3f377197 |
parent 16109 | 2fc37552b587 |
permissions | -rw-r--r-- |
16094 | 1 |
# Templates for wavefront collapse map generator in hedgewars |
2 |
||
3 |
################ TILES ################ |
|
4 |
# round120 tiles |
|
5 |
[[tiles.round120]] |
|
6 |
name = "120_filled.png" |
|
7 |
edges = [ "f", "f", "f", "f" ] |
|
8 |
is_negative = true |
|
9 |
||
10 |
[[tiles.round120]] |
|
11 |
name = "120_bar.png" |
|
12 |
edges = [ "f", "fe", "e", "ef" ] |
|
13 |
is_negative = true |
|
14 |
can_rotate90 = true |
|
15 |
can_rotate180 = true |
|
16 |
can_rotate270 = true |
|
17 |
||
18 |
[[tiles.round120]] |
|
19 |
name = "120_filled.png" |
|
20 |
edges = [ "e", "e", "e", "e" ] |
|
21 |
is_negative = false |
|
22 |
||
23 |
[[tiles.round120]] |
|
24 |
name = "120_corner.png" |
|
25 |
edges = [ "fe", "e", "e", "ef" ] |
|
26 |
is_negative = true |
|
27 |
can_rotate90 = true |
|
28 |
can_rotate180 = true |
|
29 |
can_rotate270 = true |
|
30 |
||
31 |
[[tiles.round120]] |
|
32 |
name = "120_corner.png" |
|
33 |
edges = [ "ef", "f", "f", "fe" ] |
|
34 |
is_negative = false |
|
35 |
can_rotate90 = true |
|
36 |
can_rotate180 = true |
|
37 |
can_rotate270 = true |
|
38 |
||
39 |
[[tiles.round120]] |
|
40 |
name = "120_two_corners.png" |
|
41 |
edges = [ "fe", "ef", "fe", "ef" ] |
|
42 |
is_negative = true |
|
43 |
can_mirror = true |
|
44 |
can_flip = false |
|
45 |
||
46 |
# Rooms tiles |
|
47 |
[[tiles.Rooms]] |
|
48 |
name = "bend_120.png" |
|
16103
fff7c8e36f7b
Fix bugs in edge definitions in Rooms tile set, remove spikes tile set
unC0Rr
parents:
16100
diff
changeset
|
49 |
edges = [ "fee", "eef", "f", "f" ] |
fff7c8e36f7b
Fix bugs in edge definitions in Rooms tile set, remove spikes tile set
unC0Rr
parents:
16100
diff
changeset
|
50 |
is_negative = true |
16094 | 51 |
can_rotate90 = true |
52 |
can_rotate180 = true |
|
53 |
can_rotate270 = true |
|
54 |
||
55 |
[[tiles.Rooms]] |
|
56 |
name = "corner_120.png" |
|
57 |
edges = [ "eef", "fee", "e", "e" ] |
|
16103
fff7c8e36f7b
Fix bugs in edge definitions in Rooms tile set, remove spikes tile set
unC0Rr
parents:
16100
diff
changeset
|
58 |
is_negative = true |
16094 | 59 |
can_rotate90 = true |
60 |
can_rotate180 = true |
|
61 |
can_rotate270 = true |
|
62 |
||
63 |
[[tiles.Rooms]] |
|
64 |
name = "corridor_120.png" |
|
16103
fff7c8e36f7b
Fix bugs in edge definitions in Rooms tile set, remove spikes tile set
unC0Rr
parents:
16100
diff
changeset
|
65 |
edges = [ "efe", "e", "efe", "e" ] |
fff7c8e36f7b
Fix bugs in edge definitions in Rooms tile set, remove spikes tile set
unC0Rr
parents:
16100
diff
changeset
|
66 |
is_negative = true |
16094 | 67 |
can_rotate90 = true |
68 |
can_rotate180 = false |
|
69 |
can_rotate270 = false |
|
70 |
||
71 |
[[tiles.Rooms]] |
|
72 |
name = "door_120.png" |
|
73 |
edges = [ "f", "fee", "efe", "eef" ] |
|
16103
fff7c8e36f7b
Fix bugs in edge definitions in Rooms tile set, remove spikes tile set
unC0Rr
parents:
16100
diff
changeset
|
74 |
is_negative = true |
16094 | 75 |
can_rotate90 = true |
76 |
can_rotate180 = true |
|
77 |
can_rotate270 = true |
|
78 |
||
79 |
[[tiles.Rooms]] |
|
80 |
name = "empty_120.png" |
|
81 |
edges = [ "f", "f", "f", "f" ] |
|
16103
fff7c8e36f7b
Fix bugs in edge definitions in Rooms tile set, remove spikes tile set
unC0Rr
parents:
16100
diff
changeset
|
82 |
is_negative = true |
16094 | 83 |
|
84 |
[[tiles.Rooms]] |
|
85 |
name = "side_120.png" |
|
86 |
edges = [ "e", "eef", "f", "fee" ] |
|
16103
fff7c8e36f7b
Fix bugs in edge definitions in Rooms tile set, remove spikes tile set
unC0Rr
parents:
16100
diff
changeset
|
87 |
is_negative = true |
16094 | 88 |
can_rotate90 = true |
89 |
can_rotate180 = true |
|
90 |
can_rotate270 = true |
|
91 |
||
92 |
[[tiles.Rooms]] |
|
93 |
name = "t_120.png" |
|
94 |
edges = [ "e", "efe", "efe", "efe" ] |
|
16103
fff7c8e36f7b
Fix bugs in edge definitions in Rooms tile set, remove spikes tile set
unC0Rr
parents:
16100
diff
changeset
|
95 |
is_negative = true |
16094 | 96 |
can_rotate90 = true |
97 |
can_rotate180 = true |
|
98 |
can_rotate270 = true |
|
99 |
||
100 |
[[tiles.Rooms]] |
|
101 |
name = "turn_120.png" |
|
102 |
edges = [ "efe", "efe", "e", "e" ] |
|
16103
fff7c8e36f7b
Fix bugs in edge definitions in Rooms tile set, remove spikes tile set
unC0Rr
parents:
16100
diff
changeset
|
103 |
is_negative = true |
16094 | 104 |
can_mirror = false |
105 |
can_flip = false |
|
106 |
can_rotate90 = true |
|
107 |
can_rotate180 = true |
|
108 |
can_rotate270 = true |
|
109 |
||
110 |
[[tiles.Rooms]] |
|
111 |
name = "wall_120.png" |
|
112 |
edges = [ "e", "e", "e", "e" ] |
|
16100
fba762376a07
- Reduce wfc templates definition file by removing excess fields with false value
unC0Rr
parents:
16094
diff
changeset
|
113 |
is_negative = true |
fba762376a07
- Reduce wfc templates definition file by removing excess fields with false value
unC0Rr
parents:
16094
diff
changeset
|
114 |
|
16105 | 115 |
# shoppa tiles |
116 |
[[tiles.Shoppa]] |
|
117 |
name = "120_filled.png" |
|
16108
65c017453e83
Add anti_match feature, log some info when cannot satisfy rules
unC0Rr
parents:
16107
diff
changeset
|
118 |
weight = 0 |
16110 | 119 |
edges = [ "first_layer_reyal_tsrif", "f", "!f", "f" ] |
16105 | 120 |
is_negative = true |
121 |
||
122 |
[[tiles.Shoppa]] |
|
123 |
name = "120_filled.png" |
|
124 |
edges = [ "e", "e", "e", "e" ] |
|
125 |
||
126 |
[[tiles.Shoppa]] |
|
16110 | 127 |
name = "120_filled.png" |
128 |
weight = 15 |
|
129 |
edges = [ "e", "OE", "EO", "e" ] |
|
130 |
can_rotate90 = true |
|
131 |
can_rotate180 = true |
|
132 |
can_rotate270 = true |
|
133 |
||
134 |
[[tiles.Shoppa]] |
|
16108
65c017453e83
Add anti_match feature, log some info when cannot satisfy rules
unC0Rr
parents:
16107
diff
changeset
|
135 |
# forced space |
16105 | 136 |
name = "120_filled.png" |
16108
65c017453e83
Add anti_match feature, log some info when cannot satisfy rules
unC0Rr
parents:
16107
diff
changeset
|
137 |
weight = 0 |
16109
2fc37552b587
Introduce hard match option for edges to reduce backtracking
unC0Rr
parents:
16108
diff
changeset
|
138 |
edges = [ "!E", "e", "e", "e" ] |
16110 | 139 |
anti_match = [0, 1, 0, 1] |
16108
65c017453e83
Add anti_match feature, log some info when cannot satisfy rules
unC0Rr
parents:
16107
diff
changeset
|
140 |
can_rotate90 = true |
65c017453e83
Add anti_match feature, log some info when cannot satisfy rules
unC0Rr
parents:
16107
diff
changeset
|
141 |
can_rotate180 = true |
65c017453e83
Add anti_match feature, log some info when cannot satisfy rules
unC0Rr
parents:
16107
diff
changeset
|
142 |
can_rotate270 = true |
16105 | 143 |
|
144 |
[[tiles.Shoppa]] |
|
145 |
name = "120_filled.png" |
|
16108
65c017453e83
Add anti_match feature, log some info when cannot satisfy rules
unC0Rr
parents:
16107
diff
changeset
|
146 |
weight = 10 |
16109
2fc37552b587
Introduce hard match option for edges to reduce backtracking
unC0Rr
parents:
16108
diff
changeset
|
147 |
edges = [ "e", "e", "!first_layer_reyal_tsrif", "e" ] |
16105 | 148 |
|
149 |
[[tiles.Shoppa]] |
|
150 |
name = "shoppa_bar.png" |
|
16107 | 151 |
weight = 15 |
16105 | 152 |
edges = [ "e", "efe", "e", "efe" ] |
16108
65c017453e83
Add anti_match feature, log some info when cannot satisfy rules
unC0Rr
parents:
16107
diff
changeset
|
153 |
anti_match = [1, 0, 1, 0] |
16105 | 154 |
can_rotate90 = true |
155 |
||
156 |
[[tiles.Shoppa]] |
|
16108
65c017453e83
Add anti_match feature, log some info when cannot satisfy rules
unC0Rr
parents:
16107
diff
changeset
|
157 |
# used as end piece |
65c017453e83
Add anti_match feature, log some info when cannot satisfy rules
unC0Rr
parents:
16107
diff
changeset
|
158 |
name = "shoppa_bar.png" |
65c017453e83
Add anti_match feature, log some info when cannot satisfy rules
unC0Rr
parents:
16107
diff
changeset
|
159 |
weight = 10 |
16105 | 160 |
edges = [ "e", "e", "e", "efe" ] |
16108
65c017453e83
Add anti_match feature, log some info when cannot satisfy rules
unC0Rr
parents:
16107
diff
changeset
|
161 |
anti_match = [1, 1, 1, 0] |
65c017453e83
Add anti_match feature, log some info when cannot satisfy rules
unC0Rr
parents:
16107
diff
changeset
|
162 |
can_mirror = true |
16105 | 163 |
|
164 |
[[tiles.Shoppa]] |
|
165 |
name = "shoppa_roundedendpiece.png" |
|
16108
65c017453e83
Add anti_match feature, log some info when cannot satisfy rules
unC0Rr
parents:
16107
diff
changeset
|
166 |
weight = 8 |
16107 | 167 |
edges = [ "e", "e", "e", "efe" ] |
16108
65c017453e83
Add anti_match feature, log some info when cannot satisfy rules
unC0Rr
parents:
16107
diff
changeset
|
168 |
anti_match = [1, 1, 1, 0] |
16105 | 169 |
can_rotate90 = true |
170 |
can_rotate270 = true |
|
171 |
can_mirror = true |
|
172 |
||
173 |
[[tiles.Shoppa]] |
|
174 |
name = "shoppa_t.png" |
|
16107 | 175 |
weight = 4 |
16105 | 176 |
edges = [ "e", "efe", "efe", "efe" ] |
16108
65c017453e83
Add anti_match feature, log some info when cannot satisfy rules
unC0Rr
parents:
16107
diff
changeset
|
177 |
anti_match = [1, 1, 1, 1] |
16105 | 178 |
can_rotate90 = true |
179 |
can_rotate270 = true |
|
180 |
||
181 |
[[tiles.Shoppa]] |
|
16108
65c017453e83
Add anti_match feature, log some info when cannot satisfy rules
unC0Rr
parents:
16107
diff
changeset
|
182 |
# first layer semicircle |
16105 | 183 |
name = "shoppa_sector.png" |
16107 | 184 |
weight = 5 |
16109
2fc37552b587
Introduce hard match option for edges to reduce backtracking
unC0Rr
parents:
16108
diff
changeset
|
185 |
edges = [ "e", "sector_rotces", "!first_layer_reyal_tsrif", "e" ] |
16108
65c017453e83
Add anti_match feature, log some info when cannot satisfy rules
unC0Rr
parents:
16107
diff
changeset
|
186 |
anti_match = [1, 0, 0, 1] |
16107 | 187 |
can_mirror = true |
16105 | 188 |
|
189 |
[[tiles.Shoppa]] |
|
190 |
name = "shoppa_sector.png" |
|
16110 | 191 |
weight = 8 |
16105 | 192 |
edges = [ "e", "sector", "rotces", "e" ] |
16108
65c017453e83
Add anti_match feature, log some info when cannot satisfy rules
unC0Rr
parents:
16107
diff
changeset
|
193 |
anti_match = [1, 0, 0, 1] |
16105 | 194 |
can_rotate90 = true |
195 |
can_rotate180 = true |
|
196 |
can_rotate270 = true |
|
197 |
||
198 |
[[tiles.Shoppa]] |
|
16110 | 199 |
name = "120_corner.png" |
200 |
weight = 8 |
|
201 |
edges = [ "RS", "e", "e", "SR" ] |
|
202 |
anti_match = [0, 1, 1, 0] |
|
203 |
is_negative = true |
|
204 |
can_rotate90 = true |
|
205 |
can_rotate180 = true |
|
206 |
can_rotate270 = true |
|
207 |
||
208 |
[[tiles.Shoppa]] |
|
209 |
name = "120_bar.png" |
|
210 |
edges = [ "RRR", "RS", "e", "SR" ] |
|
211 |
anti_match = [0, 0, 1, 0] |
|
212 |
is_negative = true |
|
213 |
can_flip = true |
|
214 |
||
215 |
[[tiles.Shoppa]] |
|
16105 | 216 |
name = "shoppa_hill_center_1.png" |
16108
65c017453e83
Add anti_match feature, log some info when cannot satisfy rules
unC0Rr
parents:
16107
diff
changeset
|
217 |
weight = 0 |
16109
2fc37552b587
Introduce hard match option for edges to reduce backtracking
unC0Rr
parents:
16108
diff
changeset
|
218 |
edges = [ "E", "E", "!retnecllih", "E" ] |
16105 | 219 |
|
220 |
[[tiles.Shoppa]] |
|
221 |
name = "shoppa_hill_center_2.png" |
|
16108
65c017453e83
Add anti_match feature, log some info when cannot satisfy rules
unC0Rr
parents:
16107
diff
changeset
|
222 |
weight = 0 |
65c017453e83
Add anti_match feature, log some info when cannot satisfy rules
unC0Rr
parents:
16107
diff
changeset
|
223 |
edges = [ "hillcenter", "hillside2", "H", "2edisllih" ] |
65c017453e83
Add anti_match feature, log some info when cannot satisfy rules
unC0Rr
parents:
16107
diff
changeset
|
224 |
anti_match = [0, 2, 0, 2] |
16105 | 225 |
|
226 |
[[tiles.Shoppa]] |
|
227 |
name = "shoppa_hill_side_2.png" |
|
16108
65c017453e83
Add anti_match feature, log some info when cannot satisfy rules
unC0Rr
parents:
16107
diff
changeset
|
228 |
weight = 0 |
65c017453e83
Add anti_match feature, log some info when cannot satisfy rules
unC0Rr
parents:
16107
diff
changeset
|
229 |
edges = [ "e", "hillside2", "3edisllih", "e" ] |
65c017453e83
Add anti_match feature, log some info when cannot satisfy rules
unC0Rr
parents:
16107
diff
changeset
|
230 |
anti_match = [0, 1, 0, 0] |
65c017453e83
Add anti_match feature, log some info when cannot satisfy rules
unC0Rr
parents:
16107
diff
changeset
|
231 |
can_mirror = true |
16105 | 232 |
|
233 |
[[tiles.Shoppa]] |
|
234 |
name = "shoppa_hill_side_3.png" |
|
16108
65c017453e83
Add anti_match feature, log some info when cannot satisfy rules
unC0Rr
parents:
16107
diff
changeset
|
235 |
weight = 0 |
16105 | 236 |
edges = [ "hillside3", "H", "4edisllih", "e" ] |
237 |
can_mirror = true |
|
238 |
||
239 |
[[tiles.Shoppa]] |
|
240 |
name = "shoppa_hill_side_4.png" |
|
16110 | 241 |
weight = 4 |
16109
2fc37552b587
Introduce hard match option for edges to reduce backtracking
unC0Rr
parents:
16108
diff
changeset
|
242 |
edges = [ "hillside4", "H", "!first_layer_reyal_tsrif", "e" ] |
16108
65c017453e83
Add anti_match feature, log some info when cannot satisfy rules
unC0Rr
parents:
16107
diff
changeset
|
243 |
anti_match = [0, 4, 0, 0] |
16105 | 244 |
can_mirror = true |
245 |
||
246 |
[[tiles.Shoppa]] |
|
247 |
name = "120_filled.png" |
|
16108
65c017453e83
Add anti_match feature, log some info when cannot satisfy rules
unC0Rr
parents:
16107
diff
changeset
|
248 |
weight = 0 |
16105 | 249 |
edges = [ "H", "H", "first_layer_reyal_tsrif", "H" ] |
250 |
is_negative = true |
|
251 |
||
252 |
[[tiles.Shoppa]] |
|
253 |
name = "120_filled.png" |
|
254 |
edges = [ "H", "H", "H", "H" ] |
|
16108
65c017453e83
Add anti_match feature, log some info when cannot satisfy rules
unC0Rr
parents:
16107
diff
changeset
|
255 |
anti_match = [0, 2, 0, 2] |
16105 | 256 |
is_negative = true |
257 |
||
16094 | 258 |
################ EDGES ################ |
259 |
[edges.bottom_row] |
|
260 |
top = { begin = "e", fill = "e", end = "e" } |
|
261 |
right = { begin = "e", fill = "e", end = "e" } |
|
262 |
bottom = { begin = "ef", fill = "f", end = "fe" } |
|
263 |
left = { begin = "e", fill = "e", end = "e" } |
|
264 |
||
16105 | 265 |
[edges.bottom_fill] |
266 |
bottom.fill = "f" |
|
267 |
||
16094 | 268 |
[edges.top_bottom] |
269 |
top.fill = "f" |
|
270 |
bottom.fill = "f" |
|
271 |
||
16100
fba762376a07
- Reduce wfc templates definition file by removing excess fields with false value
unC0Rr
parents:
16094
diff
changeset
|
272 |
[edges.full_top_bottom] |
16103
fff7c8e36f7b
Fix bugs in edge definitions in Rooms tile set, remove spikes tile set
unC0Rr
parents:
16100
diff
changeset
|
273 |
top = { begin = "f", fill = "f", end = "f" } |
16100
fba762376a07
- Reduce wfc templates definition file by removing excess fields with false value
unC0Rr
parents:
16094
diff
changeset
|
274 |
bottom = { begin = "f", fill = "f", end = "f" } |
fba762376a07
- Reduce wfc templates definition file by removing excess fields with false value
unC0Rr
parents:
16094
diff
changeset
|
275 |
|
16094 | 276 |
################ TEMPLATES ################ |
277 |
[[templates]] |
|
278 |
# 0 |
|
279 |
width = 3960 |
|
280 |
height = 1920 |
|
281 |
can_invert = false |
|
282 |
is_negative = false |
|
283 |
put_girders = true |
|
284 |
max_hedgehogs = 40 |
|
285 |
wrap = true |
|
286 |
edges = "top_bottom" |
|
287 |
tiles = [ "round120" ] |
|
288 |
||
289 |
[[templates]] |
|
290 |
# 1 |
|
291 |
width = 3960 |
|
292 |
height = 1920 |
|
293 |
can_invert = false |
|
294 |
is_negative = false |
|
295 |
put_girders = true |
|
296 |
max_hedgehogs = 40 |
|
297 |
wrap = false |
|
298 |
edges = "bottom_row" |
|
299 |
tiles = [ "round120" ] |
|
300 |
||
301 |
[[templates]] |
|
302 |
# 2 |
|
303 |
width = 1200 |
|
304 |
height = 600 |
|
305 |
can_invert = false |
|
306 |
is_negative = false |
|
307 |
put_girders = true |
|
308 |
max_hedgehogs = 24 |
|
309 |
wrap = false |
|
310 |
edges = "bottom_row" |
|
311 |
tiles = [ "round120" ] |
|
312 |
||
313 |
[[templates]] |
|
314 |
# 3 |
|
315 |
width = 720 |
|
316 |
height = 7920 |
|
317 |
can_invert = false |
|
318 |
is_negative = false |
|
319 |
put_girders = true |
|
320 |
max_hedgehogs = 64 |
|
321 |
wrap = false |
|
322 |
edges = "bottom_row" |
|
323 |
tiles = [ "round120" ] |
|
324 |
||
325 |
[[templates]] |
|
326 |
# 4 |
|
327 |
width = 2200 |
|
328 |
height = 960 |
|
329 |
can_invert = false |
|
330 |
is_negative = false |
|
331 |
put_girders = true |
|
332 |
max_hedgehogs = 24 |
|
333 |
wrap = false |
|
334 |
edges = "bottom_row" |
|
335 |
tiles = [ "round120" ] |
|
336 |
||
337 |
[[templates]] |
|
16100
fba762376a07
- Reduce wfc templates definition file by removing excess fields with false value
unC0Rr
parents:
16094
diff
changeset
|
338 |
# 5 |
16103
fff7c8e36f7b
Fix bugs in edge definitions in Rooms tile set, remove spikes tile set
unC0Rr
parents:
16100
diff
changeset
|
339 |
width = 2280 |
fff7c8e36f7b
Fix bugs in edge definitions in Rooms tile set, remove spikes tile set
unC0Rr
parents:
16100
diff
changeset
|
340 |
height = 1200 |
16100
fba762376a07
- Reduce wfc templates definition file by removing excess fields with false value
unC0Rr
parents:
16094
diff
changeset
|
341 |
can_invert = false |
fba762376a07
- Reduce wfc templates definition file by removing excess fields with false value
unC0Rr
parents:
16094
diff
changeset
|
342 |
put_girders = true |
fba762376a07
- Reduce wfc templates definition file by removing excess fields with false value
unC0Rr
parents:
16094
diff
changeset
|
343 |
max_hedgehogs = 40 |
fba762376a07
- Reduce wfc templates definition file by removing excess fields with false value
unC0Rr
parents:
16094
diff
changeset
|
344 |
wrap = true |
fba762376a07
- Reduce wfc templates definition file by removing excess fields with false value
unC0Rr
parents:
16094
diff
changeset
|
345 |
edges = "full_top_bottom" |
16103
fff7c8e36f7b
Fix bugs in edge definitions in Rooms tile set, remove spikes tile set
unC0Rr
parents:
16100
diff
changeset
|
346 |
tiles = [ "Rooms" ] |
16094 | 347 |
|
16105 | 348 |
[[templates]] |
349 |
# 6 |
|
350 |
width = 3960 |
|
351 |
height = 1920 |
|
352 |
can_invert = false |
|
353 |
is_negative = false |
|
354 |
put_girders = true |
|
355 |
max_hedgehogs = 64 |
|
356 |
wrap = true |
|
357 |
edges = "bottom_fill" |
|
358 |
tiles = [ "Shoppa" ] |
|
359 |
||
16094 | 360 |
[template_types] |
361 |
small = [ 2 ] |
|
362 |
medium = [ 4 ] |
|
363 |
large = [ 1 ] |
|
364 |
cavern = [ 0, 5 ] |
|
16105 | 365 |
wacky = [ 6 ] |