-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathdemo_wfc_2d_tilemap_multitile.tscn
78 lines (66 loc) · 9.66 KB
/
demo_wfc_2d_tilemap_multitile.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
[gd_scene load_steps=14 format=3 uid="uid://do26y4bs02o2g"]
[ext_resource type="TileSet" uid="uid://dgefkshuslimj" path="res://addons/wfc/examples/assets/kenney-tiny-dungeon/tile-set.tres" id="1_kld1t"]
[ext_resource type="Script" path="res://addons/wfc/nodes/generator_2d.gd" id="2_lei82"]
[ext_resource type="Script" path="res://addons/wfc/problems/2d/mappers/mapper_2d_layered_tilemap.gd" id="3_x6bkc"]
[ext_resource type="Script" path="res://addons/wfc/utils/bitmatrix.gd" id="3_xkmgf"]
[ext_resource type="Script" path="res://addons/wfc/problems/2d/mappers/mapper_2d_multitile.gd" id="4_81wi2"]
[ext_resource type="Script" path="res://addons/wfc/problems/2d/rules_2d.gd" id="5_5pb0u"]
[ext_resource type="Script" path="res://addons/wfc/solver/solver_settings.gd" id="6_7k31g"]
[ext_resource type="PackedScene" uid="uid://dt2nffs32s7o1" path="res://addons/wfc/examples/helpers/progress_indicator.tscn" id="6_673hp"]
[sub_resource type="GDScript" id="GDScript_sr34g"]
script/source = "extends Node2D
func _ready():
$sample.hide()
$target.show()
$WFC2DGenerator.start()
"
[sub_resource type="Resource" id="Resource_wtrul"]
script = ExtResource("3_x6bkc")
attrs_to_id = {}
layers = Array[int]([])
use_builtin_probabilities = true
probability_meta_key = "wfc_probability"
[sub_resource type="Resource" id="Resource_rfxqi"]
script = ExtResource("4_81wi2")
mapper = SubResource("Resource_wtrul")
tile_size = Vector2i(3, 3)
offset = Vector2i(0, 0)
allow_partial = false
tiles_to_id = {}
probability_meta_key = "wfc_probability"
[sub_resource type="Resource" id="Resource_pa1tk"]
script = ExtResource("5_5pb0u")
mapper = SubResource("Resource_rfxqi")
complete_matrices = true
axes = Array[Vector2i]([Vector2i(0, 1), Vector2i(1, 0)])
axis_matrices = Array[ExtResource("3_xkmgf")]([])
probabilities = []
probabilities_enabled = true
edge_condition_meta_name = "wfc_edge"
[sub_resource type="Resource" id="Resource_30nyt"]
script = ExtResource("6_7k31g")
allow_backtracking = true
require_backtracking = false
backtracking_limit = -1
sparse_history_start = 10
sparse_history_interval = 10
force_ac3 = true
[node name="DemoWfc2dTilemapMultitile" type="Node2D"]
script = SubResource("GDScript_sr34g")
[node name="sample" type="TileMap" parent="."]
tile_set = ExtResource("1_kld1t")
format = 2
layer_0/tile_data = PackedInt32Array(0, 0, 0, 65536, 0, 0, 131072, 0, 0, 131073, 0, 0, 131074, 0, 0, 65538, 0, 0, 2, 0, 0, 1, 0, 0, 65537, 0, 0, 196608, 0, 0, 262144, 0, 0, 327680, 0, 0, 327681, 0, 0, 262146, 0, 0, 196610, 0, 0, 196609, 0, 0, 262145, 0, 0, 327682, 0, 0, 131075, 0, 0, 131076, 0, 0, 131077, 0, 0, 65541, 0, 0, 5, 0, 0, 4, 0, 0, 3, 0, 0, 65539, 0, 0, 65540, 0, 0, 196611, 0, 0, 262147, 0, 0, 327683, 0, 0, 196612, 0, 0, 196613, 0, 0, 327685, 0, 0, 327684, 0, 4, 262148, 0, 4, 262149, 0, 4, 262150, 0, 4, 262151, 0, 4, 262152, 0, 4, 393220, 0, 4, 458756, 0, 4, 524292, 0, 4, 589828, 0, 4, 655364, 0, 4, 655365, 0, 4, 655366, 0, 4, 655367, 0, 4, 655368, 0, 4, 262153, 0, 4, 327690, 0, 4, 262154, 0, 4, 393226, 0, 4, 458762, 0, 4, 524298, 0, 4, 589834, 0, 4, 655370, 0, 4, 655369, 0, 4, 196614, 0, 0, 196615, 0, 0, 196616, 0, 0, 327688, 0, 0, 327687, 0, 0, 327686, 0, 0, 196617, 0, 0, 196618, 0, 0, 196619, 0, 0, 262155, 0, 0, 327691, 0, 0, 327689, 0, 0, 393225, 0, 0, 458761, 0, 0, 524297, 0, 0, 589833, 0, 0, 589835, 0, 0, 524299, 0, 0, 458763, 0, 0, 393227, 0, 0, 655371, 0, 0, 720907, 0, 0, 720906, 0, 0, 720905, 0, 0, 720904, 0, 0, 720903, 0, 0, 720902, 0, 0, 720901, 0, 0, 720900, 0, 0, 720899, 0, 0, 655363, 0, 0, 589827, 0, 0, 524291, 0, 0, 458755, 0, 0, 393219, 0, 0, 393221, 0, 0, 458757, 0, 0, 524293, 0, 0, 589829, 0, 0, 589830, 0, 0, 589831, 0, 0, 589832, 0, 0, 393222, 0, 0, 458758, 0, 0, 524294, 0, 0, 524295, 0, 0, 524296, 0, 0, 458760, 0, 0, 393224, 0, 0, 393223, 0, 0, 458759, 0, 0, 393216, 0, 0, 458752, 0, 0, 524288, 0, 0, 589824, 0, 0, 655360, 0, 0, 720896, 0, 0, 720897, 0, 0, 720898, 0, 0, 655362, 0, 0, 589826, 0, 0, 524290, 0, 0, 458754, 0, 0, 393218, 0, 0, 393217, 0, 0, 458753, 0, 0, 524289, 0, 0, 589825, 0, 0, 655361, 0, 0, 786432, 0, 0, 786433, 0, 0, 786434, 0, 0, 851970, 0, 0, 851968, 0, 0, 851969, 0, 0, 786435, 0, 0, 786436, 0, 0, 786437, 0, 0, 786438, 0, 0, 786439, 0, 0, 786440, 0, 0, 786441, 0, 0, 786442, 0, 0, 786443, 0, 0, 851979, 0, 0, 851971, 0, 0, 851972, 0, 0, 851973, 0, 0, 851974, 0, 0, 851975, 0, 0, 851976, 0, 0, 851977, 0, 0, 851978, 0, 0, 917504, 0, 0, 917505, 0, 0, 917506, 0, 0, 917507, 0, 0, 917508, 0, 0, 917509, 0, 0, 917510, 0, 0, 917511, 0, 0, 917512, 0, 0, 917513, 0, 0, 917514, 0, 0, 917515, 0, 0, 720908, 0, 0, 655372, 0, 0, 589836, 0, 0, 589837, 0, 0, 589838, 0, 0, 655374, 0, 0, 720910, 0, 0, 720909, 0, 0, 655373, 0, 0, 393228, 0, 0, 458764, 0, 0, 524300, 0, 0, 524301, 0, 0, 524302, 0, 0, 458766, 0, 0, 393230, 0, 0, 393229, 0, 0, 458765, 0, 0, 196620, 0, 0, 196622, 0, 0, 196621, 0, 0, 262157, 0, 0, 262158, 0, 0, 327694, 0, 0, 327693, 0, 0, 327692, 0, 0, 262156, 0, 0, 10, 0, 0, 65546, 0, 0, 131082, 0, 0, 131083, 0, 0, 65547, 0, 0, 11, 0, 0, 9, 0, 0, 65545, 0, 0, 131081, 0, 0, 131080, 0, 0, 65544, 0, 0, 8, 0, 0, 7, 0, 0, 65543, 0, 0, 131079, 0, 0, 131078, 0, 0, 65542, 0, 0, 6, 0, 0, 327695, 0, 0, 262159, 0, 0, 196623, 0, 0, 196624, 0, 0, 196625, 0, 0, 262161, 0, 0, 327697, 0, 0, 262160, 327680, 3, 327696, 0, 4, 393232, 0, 4, 458768, 0, 4, 524304, 0, 4, 393231, 0, 0, 458767, 0, 0, 524303, 0, 0, 393233, 0, 0, 458769, 0, 0, 524305, 0, 0, 196626, 0, 0, 262162, 0, 0, 327698, 0, 0, 327699, 0, 0, 327700, 0, 0, 262164, 0, 0, 196628, 0, 0, 196627, 0, 0, 262163, 0, 0, 131087, 0, 0, 65551, 0, 0, 15, 0, 0, 16, 0, 0, 17, 0, 0, 65553, 0, 0, 131089, 0, 0, 131088, 0, 0, 65552, 0, 0, 655376, 327680, 3, 589840, 0, 4, 589839, 0, 0, 655375, 0, 0, 720911, 0, 0, 720912, 0, 0, 720913, 0, 0, 655377, 0, 0, 589841, 0, 0, 589842, 0, 0, 589843, 0, 0, 589844, 0, 0, 655380, 0, 0, 720916, 0, 0, 720915, 0, 0, 720914, 0, 0, 655378, 0, 0, 655379, 0, 0, 786447, 0, 0, 851983, 0, 0, 851984, 0, 0, 917520, 0, 0, 917519, 0, 0, 917521, 0, 0, 851985, 0, 0, 786449, 0, 0, 786448, 0, 0, 393234, 0, 0, 458770, 0, 0, 524306, 0, 0, 524307, 0, 0, 524308, 0, 0, 393236, 0, 0, 393235, 0, 0, 458771, 327680, 3, 458777, 327680, 3, 458772, 0, 4, 458773, 0, 4, 458774, 0, 4, 458775, 0, 4, 458776, 0, 4, 393237, 0, 0, 393238, 0, 0, 393239, 0, 0, 524311, 0, 0, 524310, 0, 0, 524309, 0, 0, 524312, 0, 0, 524313, 0, 0, 524314, 0, 0, 458778, 0, 0, 393242, 0, 0, 393241, 0, 0, 393240, 0, 0, 327704, 0, 0, 262168, 0, 0, 196632, 0, 0, 196633, 0, 0, 196634, 0, 0, 262170, 0, 0, 327706, 0, 0, 327705, 0, 0, 262169, 0, 0, 393243, 0, 0, 393244, 0, 0, 393245, 0, 0, 458781, 0, 0, 524317, 0, 0, 524316, 0, 0, 524315, 0, 0, 458779, 0, 0, 458780, 0, 0, 589848, 0, 0, 655384, 0, 0, 655385, 0, 0, 720921, 0, 0, 720920, 0, 0, 720922, 0, 0, 655386, 0, 0, 589849, 0, 0, 589850, 0, 0, 65557, 0, 4, 65558, 0, 4, 65559, 0, 4, 131094, 0, 4, 65563, 0, 4, 65564, 0, 4, 28, 0, 4, 131100, 0, 4, 262174, 0, 4, 262175, 0, 4, 262176, 0, 4, 196639, 0, 4, 393250, 0, 4, 458786, 0, 4, 524322, 0, 4, 458787, 0, 4, 65556, 0, 4, 65560, 0, 4, 196630, 0, 4, 65561, 0, 4, 65562, 0, 4, 196636, 0, 4, 262172, 0, 4, 262173, 0, 4, 262177, 0, 4, 262178, 0, 4, 327714, 0, 4, 131103, 0, 4, -65508, 0, 4, 458788, 0, 4, 589858, 0, 4, 655394, 327680, 3, 458789, 327680, 3, 65567, 327680, 3, -131044, 327680, 3, 65555, 327680, 3, 262166, 327680, 3, 327710, 0, 0, 327711, 0, 0, 327712, 0, 0, 327713, 0, 0, 196640, 0, 0, 196638, 0, 0, 393246, 0, 0, 458782, 0, 0, 524318, 0, 0, 524319, 0, 0, 524320, 0, 0, 458784, 0, 0, 393248, 0, 0, 393247, 0, 0, 458783, 0, 0, 393249, 0, 0, 458785, 0, 0, 524321, 0, 0, 524323, 0, 0, 393251, 0, 0, 196641, 0, 0, 196642, 0, 0, 196643, 0, 0, 262179, 0, 0, 327715, 0, 0, 393252, 0, 0, 393253, 0, 0, 393254, 0, 0, 458790, 0, 0, 524326, 0, 0, 524325, 0, 0, 524324, 0, 0, 589859, 0, 0, 655395, 0, 0, 720931, 0, 0, 720930, 0, 0, 720929, 0, 0, 655393, 0, 0, 589857, 0, 0, 196635, 0, 0, 262171, 0, 0, 327707, 0, 0, 327708, 0, 0, 327709, 0, 0, 196637, 0, 0, 30, 0, 0, 65566, 0, 0, 131102, 0, 0, 31, 0, 0, 32, 0, 0, 65568, 0, 0, 131104, 0, 0, 29, 0, 0, 65565, 0, 0, 131101, 0, 0, 131099, 0, 0, 27, 0, 0, -196581, 0, 0, -131045, 0, 0, -65509, 0, 0, -196580, 0, 0, -196579, 0, 0, -131043, 0, 0, -65507, 0, 0, 24, 0, 0, 25, 0, 0, 26, 0, 0, 131096, 0, 0, 131097, 0, 0, 131098, 0, 0, 131095, 0, 0, 196631, 0, 0, 262167, 0, 0, 327703, 0, 0, 327702, 0, 0, 327701, 0, 0, 262165, 0, 0, 196629, 0, 0, 131093, 0, 0, 131090, 0, 0, 131091, 0, 0, 131092, 0, 0, 65554, 0, 0, 18, 0, 0, 19, 0, 0, 20, 0, 0, 21, 0, 0, 22, 0, 0, 23, 0, 0, -196587, 0, 0, -131051, 0, 0, -65515, 0, 0, -65514, 0, 0, -65513, 0, 0, -131049, 0, 0, -196585, 0, 0, -196586, 0, 0, -131050, 0, 0, 983053, 0, 4, 1048589, 0, 4, 1114125, 0, 4, 1048588, 0, 4, 1048590, 0, 4, 917517, 0, 4, 1048591, 0, 4, 1048587, 0, 4, 1179661, 0, 4, 1048586, 327680, 3, 851981, 327680, 3, 1048592, 327680, 3, 1245197, 327680, 3, 1179660, 0, 0, 1245196, 0, 0, 1310732, 0, 0, 1310733, 0, 0, 1310734, 0, 0, 1245198, 0, 0, 1179662, 0, 0, 1114126, 0, 0, 1114124, 0, 0, 983052, 0, 0, 983054, 0, 0, 917518, 0, 0, 851982, 0, 0, 786446, 0, 0, 786445, 0, 0, 786444, 0, 0, 851980, 0, 0, 917516, 0, 0, 983051, 0, 0, 983050, 0, 0, 983049, 0, 0, 1048585, 0, 0, 1114121, 0, 0, 1114122, 0, 0, 1114123, 0, 0, 1114127, 0, 0, 1114128, 0, 0, 1114129, 0, 0, 1048593, 0, 0, 983057, 0, 0, 983055, 0, 0, 983056, 0, 0)
[node name="target" type="TileMap" parent="."]
tile_set = ExtResource("1_kld1t")
format = 2
[node name="WFC2DGenerator" type="Node" parent="."]
script = ExtResource("2_lei82")
target = NodePath("../target")
rect = Rect2i(0, 0, 40, 23)
rules = SubResource("Resource_pa1tk")
positive_sample = NodePath("../sample")
solver_settings = SubResource("Resource_30nyt")
render_intermediate_results = true
[node name="progressIndicator" parent="." node_paths=PackedStringArray("generator") instance=ExtResource("6_673hp")]
generator = NodePath("../WFC2DGenerator")