chore: adjusted room tiles

This commit is contained in:
Sara Gerretsen 2026-04-01 21:06:20 +02:00
parent d2584af0ef
commit 9ace3f79da
5 changed files with 425 additions and 189 deletions

View file

@ -1,8 +1,13 @@
[gd_scene format=3 uid="uid://bn7d8n5mbabu3"]
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_dwmor"]
albedo_color = Color(0.49411765, 0.654902, 0.39215687, 1)
metallic_specular = 0.0
[node name="Path" type="Node3D" unique_id=1526274724]
[node name="CSGBox3D" type="CSGBox3D" parent="." unique_id=252792297]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.0345459, 0)
use_collision = true
size = Vector3(2, 0.06567383, 2)
size = Vector3(3, 0.06567383, 3)
material = SubResource("StandardMaterial3D_dwmor")

View file

@ -3,7 +3,8 @@
[ext_resource type="PackedScene" uid="uid://bn7d8n5mbabu3" path="res://objects/tiles/path.tscn" id="1_txfrx"]
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_txfrx"]
albedo_color = Color(0.5137255, 0.85882354, 0.6862745, 1)
albedo_color = Color(0.677409, 0.927285, 0.98743767, 1)
metallic_specular = 0.0
[node name="Path" unique_id=1526274724 instance=ExtResource("1_txfrx")]

File diff suppressed because one or more lines are too long

View file

@ -3,6 +3,6 @@
[node name="Wall" type="Node3D" unique_id=1065638339]
[node name="CSGBox3D" type="CSGBox3D" parent="." unique_id=2062434187]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.2372894, 0)
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.695982, 0)
use_collision = true
size = Vector3(2, 2.6093445, 2)
size = Vector3(3, 6.1347656, 3)

View file

@ -4,6 +4,7 @@
[ext_resource type="PackedScene" uid="uid://cts1ix6iw1jpc" path="res://objects/tiles/start.tscn" id="2_srduu"]
[ext_resource type="PackedScene" uid="uid://cgg86120wb367" path="res://objects/tiles/room.tscn" id="3_s5a2w"]
[ext_resource type="PackedScene" uid="uid://dgfja2ji86rp7" path="res://objects/tiles/wall.tscn" id="4_yc5ro"]
[ext_resource type="PackedScene" uid="uid://chdubc88gxpdo" path="res://objects/tiles/tree.tscn" id="5_7f72c"]
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_wail4"]
sky_horizon_color = Color(0.66224277, 0.6717428, 0.6867428, 1)
@ -17,117 +18,21 @@ background_mode = 2
sky = SubResource("Sky_srduu")
glow_enabled = true
[sub_resource type="Sentence" id="Sentence_c7dwr"]
size = Vector2i(5, 5)
symbols_string = "sssss
sssss
sssss
sssss
sssss"
[sub_resource type="Sentence" id="Sentence_ohg4i"]
size = Vector2i(5, 5)
symbols_string = "ppppp
ppppp
ppspp
ppppp
ppppp"
[sub_resource type="Sentence" id="Sentence_yxqus"]
size = Vector2i(7, 7)
symbols_string = "*#####*
upppppu
upppppu
upppppu
upppppu
upppppu
*#####*"
[sub_resource type="Sentence" id="Sentence_08grt"]
size = Vector2i(7, 7)
symbols_string = "*#####*
uupppuu
uupppuu
uupppuu
uupppuu
uupppuu
*#####*"
[sub_resource type="Sentence" id="Sentence_b4io3"]
size = Vector2i(4, 4)
symbols_string = "#uuu
#uuu
#uuu
####"
[sub_resource type="Sentence" id="Sentence_cygrb"]
size = Vector2i(4, 4)
symbols_string = "#puu
#ppu
#ppp
####"
[sub_resource type="Sentence" id="Sentence_cxvmb"]
size = Vector2i(4, 4)
symbols_string = "#uuu
#puu
#ppu
####"
[sub_resource type="Sentence" id="Sentence_45kae"]
size = Vector2i(4, 4)
symbols_string = "pppu
pppu
pppu
uuuu"
[sub_resource type="Sentence" id="Sentence_eijdf"]
size = Vector2i(4, 4)
symbols_string = "pppu
ppuu
puuu
uuuu"
[sub_resource type="Sentence" id="Sentence_5lcvo"]
size = Vector2i(4, 4)
symbols_string = "pppu
pppu
ppuu
uuuu"
[sub_resource type="Sentence" id="Sentence_5ax7p"]
size = Vector2i(2, 1)
symbols_string = "pu"
[sub_resource type="Sentence" id="Sentence_ntpuo"]
size = Vector2i(2, 1)
symbols_string = "pw"
[sub_resource type="Sentence" id="Sentence_25vwi"]
size = Vector2i(2, 1)
symbols_string = "xu"
[sub_resource type="Sentence" id="Sentence_wvupy"]
size = Vector2i(2, 1)
symbols_string = "xw"
[sub_resource type="Sentence" id="Sentence_bb2w7"]
size = Vector2i(15, 15)
symbols_string = "uuuuuuuuuuuuuuu
uuuuuuuuuuuuuuu
uuuuuuuuuuuuuuu
uuuuuuuuuuuuuuu
uuuuuuuuuuuuuuu
uuuuuuuuuuuuuuu
uuuuuuuuuuuuuuu
uuuuuuuuuuuuuuu
uuuuuuuuuuuuuuu
uuuuuuuuuuuuuuu
uuuuuuuuuuuuuuu
uuuuuuuuuuuuuuu
uuuuuuuuuuuuuuu
uuuuuuuuuuuuuuu
uuuuuuuuuuuuuuu"
size = Vector2i(13, 13)
symbols_string = "uuuuuuuuuuuuu
uuuuuuuuuuuuu
uuuuuuuuuuuuu
uuuuuuuuuuuuu
uuuuuuuuuuuuu
uuuuuuuuuuuuu
uuuuuuuuuuuuu
uuuuuuuuuuuuu
uuuuuuuuuuuuu
uuuuuuuuuuuuu
uuuuuuuuuuuuu
uuuuuuuuuuuuu
uuuuuuuuuuuuu"
[sub_resource type="Sentence" id="Sentence_s5a2w"]
size = Vector2i(5, 3)
@ -147,20 +52,6 @@ symbols_string = "uuuuu
uppxu
*pup*"
[sub_resource type="Sentence" id="Sentence_pbld3"]
size = Vector2i(5, 4)
symbols_string = "####*
u#u#u
u####
uuu*u"
[sub_resource type="Sentence" id="Sentence_06kf8"]
size = Vector2i(5, 4)
symbols_string = "####*
uuu#u
uuu##
uuu*u"
[sub_resource type="Sentence" id="Sentence_7f72c"]
size = Vector2i(5, 3)
symbols_string = "**#**
@ -216,9 +107,252 @@ upu
*p*"
[sub_resource type="Sentence" id="Sentence_13d85"]
size = Vector2i(3, 2)
size = Vector2i(3, 3)
symbols_string = "uuu
uxu"
uuu
uuu"
[sub_resource type="Sentence" id="Sentence_w7jvv"]
size = Vector2i(5, 5)
symbols_string = "#u#u#
#u#u#
#####
#u#u#
#u#u#"
[sub_resource type="Sentence" id="Sentence_an3i5"]
size = Vector2i(5, 5)
symbols_string = "#u#u#
#u#p#
#u#u#
#p#u#
#u#u#"
[sub_resource type="Sentence" id="Sentence_rr1wu"]
size = Vector2i(5, 5)
symbols_string = "#u#u#
#u#p#
#p#u#
#u#u#
#u#u#"
[sub_resource type="Sentence" id="Sentence_f7vr5"]
size = Vector2i(5, 5)
symbols_string = "#u#u#
#p#u#
#u#p#
#u#u#
#u#u#"
[sub_resource type="Sentence" id="Sentence_c7dwr"]
size = Vector2i(6, 6)
symbols_string = "ssssss
ssssss
ssssss
ssssss
ssssss
ssssss"
[sub_resource type="Sentence" id="Sentence_ohg4i"]
size = Vector2i(6, 6)
symbols_string = "pppppp
pppppp
ppsppp
pppppp
pppppp
pppppp"
[sub_resource type="Sentence" id="Sentence_b4io3"]
size = Vector2i(4, 4)
symbols_string = "#uuu
#uuu
#uuu
####"
[sub_resource type="Sentence" id="Sentence_cygrb"]
size = Vector2i(4, 4)
symbols_string = "#puu
#ppu
#ppp
####"
[sub_resource type="Sentence" id="Sentence_cxvmb"]
size = Vector2i(4, 4)
symbols_string = "#uuu
#puu
#ppu
####"
[sub_resource type="Sentence" id="Sentence_45kae"]
size = Vector2i(4, 4)
symbols_string = "##pu
#ppu
pppu
uuuu"
[sub_resource type="Sentence" id="Sentence_eijdf"]
size = Vector2i(4, 4)
symbols_string = "##pu
#puu
puuu
uuuu"
[sub_resource type="Sentence" id="Sentence_5lcvo"]
size = Vector2i(4, 4)
symbols_string = "##uu
#uuu
uuuu
uuuu"
[sub_resource type="Sentence" id="Sentence_gmsn7"]
size = Vector2i(3, 1)
symbols_string = "xuu"
[sub_resource type="Sentence" id="Sentence_b5mqr"]
size = Vector2i(3, 1)
symbols_string = "xpu"
[sub_resource type="Sentence" id="Sentence_yxqus"]
size = Vector2i(8, 7)
symbols_string = "*######*
*######*
*######*
uppppppu
uppppppu
uppppppu
uppppppu"
[sub_resource type="Sentence" id="Sentence_08grt"]
size = Vector2i(8, 7)
symbols_string = "*######*
*######*
*######*
uppppuuu
uppuuuuu
uppppuuu
uuupppuu"
[sub_resource type="Sentence" id="Sentence_r4e0t"]
size = Vector2i(8, 7)
symbols_string = "*######*
*######*
*######*
uuuupppu
uuppppuu
uuppuuuu
uupppuuu"
[sub_resource type="Sentence" id="Sentence_vay0p"]
size = Vector2i(8, 7)
symbols_string = "*######*
*######*
*######*
uuuupppu
uuupppuu
uupppuuu
upppuuuu"
[sub_resource type="Sentence" id="Sentence_axw1i"]
size = Vector2i(3, 3)
symbols_string = "pp*
pup
ppp"
[sub_resource type="Sentence" id="Sentence_02jbd"]
size = Vector2i(5, 5)
symbols_string = "ppppp
ppppp
ppppp
ppppp
ppppp"
[sub_resource type="Sentence" id="Sentence_l56kf"]
size = Vector2i(5, 5)
symbols_string = "ppppp
ppppp
pptpp
ppppp
ppppp"
[sub_resource type="Sentence" id="Sentence_7uroe"]
size = Vector2i(5, 5)
symbols_string = "ppppp
ppppp
ppptp
ppppp
ppppp"
[sub_resource type="Sentence" id="Sentence_dlqvn"]
size = Vector2i(5, 5)
symbols_string = "ppppp
ppppp
ppptp
ptppp
ppppp"
[sub_resource type="Sentence" id="Sentence_ef5dr"]
size = Vector2i(5, 5)
symbols_string = "ppppp
ptppp
ppptp
ppppp
ppppp"
[sub_resource type="Sentence" id="Sentence_165gg"]
size = Vector2i(5, 5)
symbols_string = "ppppp
ptppp
ppptp
ptppp
ppppp"
[sub_resource type="Sentence" id="Sentence_mqrf4"]
size = Vector2i(5, 5)
symbols_string = "ppppp
ppppp
ptptp
ppppp
ppppp"
[sub_resource type="Sentence" id="Sentence_dup5e"]
size = Vector2i(3, 3)
symbols_string = "*u*
upu
*#*"
[sub_resource type="Sentence" id="Sentence_4pubi"]
size = Vector2i(3, 3)
symbols_string = "*u*
uuu
*#*"
[sub_resource type="Sentence" id="Sentence_pbld3"]
size = Vector2i(5, 3)
symbols_string = "uuuuu
ppppp
ppppp"
[sub_resource type="Sentence" id="Sentence_06kf8"]
size = Vector2i(5, 3)
symbols_string = "uuuuu
uuuuu
ppppp"
[sub_resource type="Sentence" id="Sentence_5ax7p"]
size = Vector2i(2, 1)
symbols_string = "pu"
[sub_resource type="Sentence" id="Sentence_ntpuo"]
size = Vector2i(2, 1)
symbols_string = "pw"
[sub_resource type="Sentence" id="Sentence_25vwi"]
size = Vector2i(2, 1)
symbols_string = "xu"
[sub_resource type="Sentence" id="Sentence_wvupy"]
size = Vector2i(2, 1)
symbols_string = "xw"
[node name="Dungeon" type="Node3D" unique_id=719313039]
@ -229,67 +363,16 @@ environment = SubResource("Environment_s5a2w")
transform = Transform3D(-0.8660254, -0.43301278, 0.25, 0, 0.49999997, 0.86602545, -0.50000006, 0.75, -0.43301266, 0, 0, 0)
shadow_enabled = true
[node name="ResizeRule" type="ResizeRule" parent="." unique_id=630306379]
factor = 5
[node name="SingleStart" type="ReplaceRule" parent="." unique_id=80625713]
pattern = SubResource("Sentence_c7dwr")
results_dict = {
SubResource("Sentence_ohg4i"): 1.0
}
[node name="TightenPaths" type="RepeatRuleUntilFailure" parent="." unique_id=1419444164]
[node name="Path" type="ReplaceRule" parent="TightenPaths" unique_id=582926889]
pattern = SubResource("Sentence_yxqus")
results_dict = {
SubResource("Sentence_08grt"): 1.0
}
deterministic = true
[node name="Naturalise" type="RepeatRuleUntilFailure" parent="." unique_id=945333249]
[node name="InnerCorner" type="ReplaceRule" parent="Naturalise" unique_id=1294874606]
pattern = SubResource("Sentence_b4io3")
results_dict = {
SubResource("Sentence_cygrb"): 1.0,
SubResource("Sentence_cxvmb"): 1.0
}
deterministic = true
[node name="OuterCorner" type="ReplaceRule" parent="Naturalise" unique_id=1858990914]
pattern = SubResource("Sentence_45kae")
results_dict = {
SubResource("Sentence_eijdf"): 1.0,
SubResource("Sentence_5lcvo"): 1.0
}
deterministic = true
[node name="AddWalls" type="RepeatRuleUntilFailure" parent="." unique_id=351448478]
[node name="Path" type="ReplaceRule" parent="AddWalls" unique_id=1194164836]
pattern = SubResource("Sentence_5ax7p")
results_dict = {
SubResource("Sentence_ntpuo"): 1.0
}
deterministic = true
[node name="Room" type="ReplaceRule" parent="AddWalls" unique_id=1878579537]
pattern = SubResource("Sentence_25vwi")
results_dict = {
SubResource("Sentence_wvupy"): 1.0
}
deterministic = true
[node name="Generator" type="Generator" parent="." unique_id=1532743122]
state = SubResource("Sentence_bb2w7")
tiles_dict = {
"p": ExtResource("1_wail4"),
"s": ExtResource("2_srduu"),
"t": ExtResource("5_7f72c"),
"w": ExtResource("4_yc5ro"),
"x": ExtResource("3_s5a2w")
}
tile_size = 2.0
tile_size = 3.0
[node name="Generate" type="CompositeRule" parent="Generator" unique_id=474042789]
@ -303,12 +386,6 @@ SubResource("Sentence_yc5ro"): 1.0,
SubResource("Sentence_qw2yk"): 1.0
}
[node name="L" type="ReplaceRule" parent="Generator/Generate/InitialLayout" unique_id=129040074]
pattern = SubResource("Sentence_pbld3")
results_dict = {
SubResource("Sentence_06kf8"): 1.0
}
[node name="CloseLines" type="ReplaceRule" parent="Generator/Generate/InitialLayout" unique_id=1610319319]
pattern = SubResource("Sentence_7f72c")
results_dict = {
@ -322,6 +399,7 @@ SubResource("Sentence_q0ye3"): 1.0
}
[node name="RefineRooms" type="RepeatRuleUntilFailure" parent="Generator/Generate" unique_id=1503159395]
random_order = true
[node name="ReplaceDouble" type="ReplaceRule" parent="Generator/Generate/RefineRooms" unique_id=1043806381]
pattern = SubResource("Sentence_7ibwp")
@ -343,3 +421,97 @@ pattern = SubResource("Sentence_7rlrl")
results_dict = {
SubResource("Sentence_13d85"): 1.0
}
[node name="SplitLongHallways" type="ReplaceRule" parent="Generator/Generate/RefineRooms" unique_id=1882155248]
pattern = SubResource("Sentence_w7jvv")
results_dict = {
SubResource("Sentence_an3i5"): 1.0,
SubResource("Sentence_rr1wu"): 1.0,
SubResource("Sentence_f7vr5"): 1.0
}
[node name="ResizeRule" type="ResizeRule" parent="Generator/Generate" unique_id=630306379]
factor = 6
[node name="SingleStart" type="ReplaceRule" parent="Generator/Generate" unique_id=80625713]
pattern = SubResource("Sentence_c7dwr")
results_dict = {
SubResource("Sentence_ohg4i"): 1.0
}
[node name="RefineGeometry" type="RepeatRuleUntilFailure" parent="Generator/Generate" unique_id=1419444164]
random_order = true
[node name="InnerCorner" type="ReplaceRule" parent="Generator/Generate/RefineGeometry" unique_id=1294874606]
pattern = SubResource("Sentence_b4io3")
results_dict = {
SubResource("Sentence_cygrb"): 1.0,
SubResource("Sentence_cxvmb"): 1.0
}
deterministic = true
[node name="OuterCorner" type="ReplaceRule" parent="Generator/Generate/RefineGeometry" unique_id=1858990914]
pattern = SubResource("Sentence_45kae")
results_dict = {
SubResource("Sentence_eijdf"): 1.0,
SubResource("Sentence_5lcvo"): 1.0
}
deterministic = true
[node name="BufferRooms" type="ReplaceRule" parent="Generator/Generate/RefineGeometry" unique_id=424099199]
pattern = SubResource("Sentence_gmsn7")
results_dict = {
SubResource("Sentence_b5mqr"): 1.0
}
[node name="TightenPath" type="ReplaceRule" parent="Generator/Generate/RefineGeometry" unique_id=582926889]
pattern = SubResource("Sentence_yxqus")
results_dict = {
SubResource("Sentence_08grt"): 1.0,
SubResource("Sentence_r4e0t"): 1.0,
SubResource("Sentence_vay0p"): 1.0
}
deterministic = true
[node name="RemoveIslands" type="ReplaceRule" parent="Generator/Generate/RefineGeometry" unique_id=476014299]
pattern = SubResource("Sentence_axw1i")
deterministic = true
[node name="AddTrees" type="ReplaceRule" parent="Generator/Generate/RefineGeometry" unique_id=1874593537]
pattern = SubResource("Sentence_02jbd")
results_dict = {
SubResource("Sentence_l56kf"): 1.0,
SubResource("Sentence_7uroe"): 1.0,
SubResource("Sentence_dlqvn"): 1.0,
SubResource("Sentence_ef5dr"): 1.0,
SubResource("Sentence_165gg"): 1.0,
SubResource("Sentence_mqrf4"): 1.0
}
[node name="RemoveDeadEnds" type="ReplaceRule" parent="Generator/Generate/RefineGeometry" unique_id=2071486466]
pattern = SubResource("Sentence_dup5e")
results_dict = {
SubResource("Sentence_4pubi"): 1.0
}
[node name="Curve" type="ReplaceRule" parent="Generator/Generate/RefineGeometry" unique_id=104291893]
pattern = SubResource("Sentence_pbld3")
results_dict = {
SubResource("Sentence_06kf8"): 1.0
}
[node name="AddWalls" type="RepeatRuleUntilFailure" parent="Generator/Generate" unique_id=351448478]
[node name="Path" type="ReplaceRule" parent="Generator/Generate/AddWalls" unique_id=1194164836]
pattern = SubResource("Sentence_5ax7p")
results_dict = {
SubResource("Sentence_ntpuo"): 1.0
}
deterministic = true
[node name="Room" type="ReplaceRule" parent="Generator/Generate/AddWalls" unique_id=1878579537]
pattern = SubResource("Sentence_25vwi")
results_dict = {
SubResource("Sentence_wvupy"): 1.0
}
deterministic = true