Messing with the dungeon

This commit is contained in:
2024-08-27 20:05:18 -07:00
parent 2fb0c364ca
commit 699a333951
45 changed files with 1005 additions and 182 deletions

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=12 format=3 uid="uid://bn4gslp2gk8ds"]
[gd_scene load_steps=11 format=3 uid="uid://bn4gslp2gk8ds"]
[ext_resource type="Script" path="res://addons/SimpleDungeons/DungeonRoom3D.gd" id="1_y0rqi"]
[ext_resource type="Texture2D" uid="uid://n4ds85jp0aq0" path="res://src/map/dungeon/textures/map_ceiling.jpg" id="2_6scux"]
@@ -15,20 +15,19 @@ albedo_texture = ExtResource("2_6scux")
uv1_scale = Vector3(0.23, 0.23, 0.23)
uv1_triplanar = true
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_cquyy"]
albedo_texture = ExtResource("4_6qf87")
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_67t3u"]
albedo_texture = ExtResource("4_6qf87")
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_ej8w2"]
albedo_texture = ExtResource("4_6qf87")
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_oy7nu"]
albedo_texture = ExtResource("4_6qf87")
[sub_resource type="PlaneMesh" id="PlaneMesh_7myha"]
size = Vector2(10, 10)
[node name="Corridor" type="Node3D"]
script = ExtResource("1_y0rqi")
min_count = 1
max_count = 1
[node name="CSGBox3D" type="CSGBox3D" parent="."]
use_collision = true
@@ -40,21 +39,26 @@ operation = 2
size = Vector3(9, 9, 9)
material = SubResource("StandardMaterial3D_18cgv")
[node name="DOOR?" parent="CSGBox3D" instance=ExtResource("2_vpnlr")]
transform = Transform3D(-4.37114e-08, 0, -1, 0, 1, 0, 1, 0, -4.37114e-08, -5, -2.58627, 0)
material = SubResource("StandardMaterial3D_cquyy")
[node name="DOOR?3" parent="CSGBox3D" instance=ExtResource("2_vpnlr")]
transform = Transform3D(-4.37114e-08, 0, 1, 0, 1, 0, -1, 0, -4.37114e-08, 5, -2.58627, 0)
material = SubResource("StandardMaterial3D_67t3u")
[node name="DOOR?4" parent="CSGBox3D" instance=ExtResource("2_vpnlr")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -2.58627, 5)
material = SubResource("StandardMaterial3D_ej8w2")
[node name="DOOR?5" parent="CSGBox3D" instance=ExtResource("2_vpnlr")]
transform = Transform3D(-0.0899894, 0, 0.995943, 0, 1, 0, -0.995943, 0, -0.0899894, -4.7076, -2.586, 0)
material = SubResource("StandardMaterial3D_ej8w2")
[node name="DOOR?6" parent="CSGBox3D" instance=ExtResource("2_vpnlr")]
transform = Transform3D(-0.0899894, 0, 0.995943, 0, 1, 0, -0.995943, 0, -0.0899894, 4.73741, -2.586, 0)
material = SubResource("StandardMaterial3D_ej8w2")
[node name="DOOR?2" parent="CSGBox3D" instance=ExtResource("2_vpnlr")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -2.58627, -5)
material = SubResource("StandardMaterial3D_oy7nu")
[node name="RemoveUnusedDoors" type="Node" parent="."]
script = ExtResource("3_8i1ij")
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -4.56974, 0)
layers = 2
mesh = SubResource("PlaneMesh_7myha")

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=6 format=3 uid="uid://dhpwwqow1ahrc"]
[gd_scene load_steps=7 format=3 uid="uid://dhpwwqow1ahrc"]
[ext_resource type="Script" path="res://addons/SimpleDungeons/DungeonRoom3D.gd" id="1_0tfda"]
[ext_resource type="Script" path="res://src/map/dungeon/rooms/DungeonRoom.cs" id="1_ti7ur"]
@@ -10,8 +10,13 @@ albedo_texture = ExtResource("2_rw3uc")
uv1_scale = Vector3(0.105, 0.105, 0.105)
uv1_triplanar = true
[sub_resource type="PlaneMesh" id="PlaneMesh_luhnj"]
size = Vector2(10, 10)
[node name="DungeonRoom3D" type="Node3D"]
script = ExtResource("1_0tfda")
min_count = 1
max_count = 3
[node name="DungeonRoom" type="Node3D" parent="."]
script = ExtResource("1_ti7ur")
@@ -36,3 +41,8 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -2.58282, -4.73548)
[node name="PlayerSpawn" type="Marker3D" parent="."]
unique_name_in_owner = true
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -4.23461, 0)
[node name="Minimap Texture" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -4.9805, 0)
layers = 2
mesh = SubResource("PlaneMesh_luhnj")

View File

@@ -1,6 +1,58 @@
[gd_scene load_steps=2 format=3 uid="uid://baddk1soq2ske"]
[gd_scene load_steps=7 format=3 uid="uid://bbwgmqy3evhh2"]
[ext_resource type="Script" path="res://addons/SimpleDungeons/DungeonRoom3D.gd" id="1_o02dd"]
[ext_resource type="Script" path="res://src/map/dungeon/rooms/DungeonRoom.cs" id="2_jrlll"]
[ext_resource type="PackedScene" uid="uid://ckaw6wjmi0fom" path="res://src/map/dungeon/door/Door.tscn" id="4_nh0nj"]
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_b8kax"]
albedo_color = Color(0.0470588, 0, 1, 1)
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_1h648"]
albedo_color = Color(0.0470588, 0, 1, 1)
[sub_resource type="PlaneMesh" id="PlaneMesh_j8q3j"]
size = Vector2(50, 10)
[node name="DungeonRoom3D" type="Node3D"]
script = ExtResource("1_o02dd")
size_in_voxels = Vector3i(5, 1, 1)
min_count = 1
max_count = 2
[node name="DungeonRoom" type="Node3D" parent="."]
script = ExtResource("2_jrlll")
[node name="CSGBox3D" type="CSGBox3D" parent="."]
use_collision = true
size = Vector3(50, 10, 10)
material = SubResource("StandardMaterial3D_b8kax")
[node name="CSGBox3D2" type="CSGBox3D" parent="CSGBox3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0493774, 0, 0)
operation = 2
use_collision = true
size = Vector3(49, 9, 9)
material = SubResource("StandardMaterial3D_1h648")
[node name="DOOR" parent="CSGBox3D" instance=ExtResource("4_nh0nj")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -2.54039, 4.74571)
[node name="DOOR2" parent="CSGBox3D" instance=ExtResource("4_nh0nj")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -2.58282, -4.73548)
[node name="PlayerSpawn" type="Marker3D" parent="."]
unique_name_in_owner = true
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -4.23461, 0)
[node name="ItemSpawnPoints" type="Node3D" parent="."]
[node name="ItemSpawn1" type="Marker3D" parent="ItemSpawnPoints"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -15.3383, -4.48909, -2.92704)
gizmo_extents = 1.0
[node name="EnemySpawnPoints" type="Node3D" parent="."]
[node name="Minimap Texture" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -4.50433, 0)
layers = 2
mesh = SubResource("PlaneMesh_j8q3j")

Binary file not shown.

After

Width:  |  Height:  |  Size: 753 KiB

View File

@@ -0,0 +1,35 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://dvql5ldgpyw63"
path.s3tc="res://.godot/imported/IMG_6565.JPEG-70110ae185d0d8955206d76c17acff50.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
[deps]
source_file="res://src/map/dungeon/textures/IMG_6565.JPEG"
dest_files=["res://.godot/imported/IMG_6565.JPEG-70110ae185d0d8955206d76c17acff50.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=0