Dialogue system; ask user if they want to teleport to next floor

This commit is contained in:
2024-09-08 23:04:27 -07:00
parent 1dfc61f003
commit 07295da93c
61 changed files with 3002 additions and 85 deletions

View File

@@ -1,22 +1,42 @@
[gd_scene load_steps=3 format=3 uid="uid://bn4gslp2gk8ds"]
[gd_scene load_steps=4 format=3 uid="uid://bn4gslp2gk8ds"]
[ext_resource type="Script" path="res://addons/SimpleDungeons/DungeonRoom3D.gd" id="1_y0rqi"]
[ext_resource type="Script" path="res://src/map/dungeon/corridor/remove_unused_doors.gd" id="3_8i1ij"]
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_8ivxp"]
[node name="Corridor" type="Node3D"]
script = ExtResource("1_y0rqi")
voxel_scale = Vector3(5, 5, 5)
voxel_scale = Vector3(12.955, 13.01, 12.945)
[node name="RemoveUnusedDoors" type="Node" parent="."]
script = ExtResource("3_8i1ij")
[node name="DOOR?" type="Marker3D" parent="."]
[node name="CSGBox3D" type="CSGBox3D" parent="."]
operation = 2
size = Vector3(12, 13, 12)
material = SubResource("StandardMaterial3D_8ivxp")
[node name="DOOR?2" type="Marker3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2.58454, 0, 0)
[node name="CSGBox3D" type="CSGBox3D" parent="CSGBox3D"]
flip_faces = true
size = Vector3(11, 12, 11)
[node name="DOOR?3" type="Marker3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 3.69131)
[node name="DOOR?" type="CSGBox3D" parent="CSGBox3D/CSGBox3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -6.04977, 0, 0)
operation = 2
size = Vector3(3, 13.01, 12.945)
[node name="DOOR?4" type="Marker3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -2.98855)
[node name="DOOR?2" type="CSGBox3D" parent="CSGBox3D/CSGBox3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 6.78526, 0, 0)
operation = 2
size = Vector3(3, 13.01, 12.945)
[node name="DOOR?3" type="CSGBox3D" parent="CSGBox3D/CSGBox3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.20009, 0, 6.52993)
operation = 2
size = Vector3(13.01, 13.01, 3)
[node name="DOOR?4" type="CSGBox3D" parent="CSGBox3D/CSGBox3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -6.77681)
operation = 2
size = Vector3(12.955, 13.01, 3)

View File

@@ -14,6 +14,6 @@ script = ExtResource("1_sr15j")
room_scenes = Array[PackedScene]([ExtResource("3_vdv5c")])
corridor_room_scene = ExtResource("4_pgrs5")
dungeon_size = Vector3i(50, 3, 50)
voxel_scale = Vector3(5, 5, 5)
voxel_scale = Vector3(12.955, 13.01, 12.945)
generate_on_ready = false
place_even_if_fail = true

View File

@@ -34,10 +34,4 @@ public partial class Overworld : Node3D, IDungeonFloor
{
GameRepo.IsWithinDialogueSpace = true;
}
public override void _UnhandledInput(InputEvent @event)
{
if (Input.IsActionJustPressed("ui_accept") && GameRepo.IsWithinDialogueSpace)
DialogueManager.ShowDialogueBalloon(Dialogue, "start");
}
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long