Basic Dungeon generation implementation

This commit is contained in:
2024-08-22 22:09:58 -07:00
parent 23ecd3a866
commit 8b3d1bed8a
16 changed files with 382 additions and 3 deletions

View File

@@ -0,0 +1,30 @@
[gd_scene load_steps=5 format=3 uid="uid://dhpwwqow1ahrc"]
[ext_resource type="Script" path="res://addons/SimpleDungeons/DungeonRoom3D.gd" id="1_0tfda"]
[ext_resource type="PackedScene" uid="uid://ckaw6wjmi0fom" path="res://src/map/dungeon/door/Door.tscn" id="2_mdawx"]
[ext_resource type="Texture2D" uid="uid://bidlc5a6lft6" path="res://src/map/dungeon/textures/map_brickwall.jpg" id="2_rw3uc"]
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_gt3ar"]
albedo_texture = ExtResource("2_rw3uc")
uv1_scale = Vector3(0.105, 0.105, 0.105)
uv1_triplanar = true
[node name="DungeonRoom3D" type="Node3D"]
script = ExtResource("1_0tfda")
[node name="CSGBox3D" type="CSGBox3D" parent="."]
material_override = SubResource("StandardMaterial3D_gt3ar")
use_collision = true
size = Vector3(10, 10, 10)
[node name="CSGBox3D2" type="CSGBox3D" parent="CSGBox3D"]
material_override = SubResource("StandardMaterial3D_gt3ar")
operation = 2
use_collision = true
size = Vector3(9, 9, 9)
[node name="DOOR" parent="CSGBox3D" instance=ExtResource("2_mdawx")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -3.47376, 4.74571)
[node name="DOOR2" parent="CSGBox3D" instance=ExtResource("2_mdawx")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -3.51619, -4.73548)

View File

@@ -0,0 +1,6 @@
[gd_scene load_steps=2 format=3 uid="uid://baddk1soq2ske"]
[ext_resource type="Script" path="res://addons/SimpleDungeons/DungeonRoom3D.gd" id="1_o02dd"]
[node name="DungeonRoom3D" type="Node3D"]
script = ExtResource("1_o02dd")