added audio subtitle system and menus and more
This commit is contained in:
24
scenes/objects/completion_counter.tscn
Normal file
24
scenes/objects/completion_counter.tscn
Normal file
@@ -0,0 +1,24 @@
|
||||
[gd_scene load_steps=5 format=3 uid="uid://22blfybi6n4q"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/completion_counter.gd" id="1_40xge"]
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_w280a"]
|
||||
size = Vector3(1, 0.2, 0.1)
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_b3hjf"]
|
||||
size = Vector3(0.1, 0.1, 0.1)
|
||||
|
||||
[sub_resource type="MultiMesh" id="MultiMesh_lx3df"]
|
||||
transform_format = 1
|
||||
instance_count = 2
|
||||
mesh = SubResource("BoxMesh_b3hjf")
|
||||
buffer = PackedFloat32Array(1.001, 0, 0, -0.075992, 0, 0, -1.001, -0.0484443, 0, 1.001, 0, -0.16236, 0, 0, 1.001, -0.295454, 0, -1.001, 0, -0.1, 1.001, 0, 0, -0.1905)
|
||||
|
||||
[node name="CompletionCounter" type="MeshInstance3D"]
|
||||
editor_description = "The amount of signals it needs connected and fired to emit a signal"
|
||||
mesh = SubResource("BoxMesh_w280a")
|
||||
script = ExtResource("1_40xge")
|
||||
|
||||
[node name="MultiMeshInstance3D" type="MultiMeshInstance3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.27379, 0.0888374, 0.219394)
|
||||
multimesh = SubResource("MultiMesh_lx3df")
|
@@ -11,7 +11,6 @@ absorbent = true
|
||||
[node name="Cube" type="RigidBody3D" groups=["pushables"]]
|
||||
mass = 1.5
|
||||
physics_material_override = SubResource("PhysicsMaterial_b2i4c")
|
||||
lock_rotation = true
|
||||
continuous_cd = true
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
|
63
scenes/objects/door.tscn
Normal file
63
scenes/objects/door.tscn
Normal file
@@ -0,0 +1,63 @@
|
||||
[gd_scene load_steps=7 format=3 uid="uid://cy0x2nliyw8gw"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/door.gd" id="1_qix0h"]
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_8iti4"]
|
||||
size = Vector3(1.5, 3, 0.2)
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_pejvk"]
|
||||
size = Vector3(1.5, 3, 0.2)
|
||||
|
||||
[sub_resource type="Animation" id="Animation_hlq2m"]
|
||||
length = 0.001
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".:position")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0),
|
||||
"transitions": PackedFloat32Array(1),
|
||||
"update": 0,
|
||||
"values": [Vector3(0, 0, 0)]
|
||||
}
|
||||
|
||||
[sub_resource type="Animation" id="Animation_53g2p"]
|
||||
resource_name = "open"
|
||||
length = 0.5
|
||||
tracks/0/type = "value"
|
||||
tracks/0/imported = false
|
||||
tracks/0/enabled = true
|
||||
tracks/0/path = NodePath(".:position")
|
||||
tracks/0/interp = 1
|
||||
tracks/0/loop_wrap = true
|
||||
tracks/0/keys = {
|
||||
"times": PackedFloat32Array(0, 0.5),
|
||||
"transitions": PackedFloat32Array(1, 1),
|
||||
"update": 0,
|
||||
"values": [Vector3(0, 0, 0), Vector3(1.4, 0, 0)]
|
||||
}
|
||||
|
||||
[sub_resource type="AnimationLibrary" id="AnimationLibrary_r8evj"]
|
||||
_data = {
|
||||
"RESET": SubResource("Animation_hlq2m"),
|
||||
"open": SubResource("Animation_53g2p")
|
||||
}
|
||||
|
||||
[node name="Door" type="Node3D"]
|
||||
script = ExtResource("1_qix0h")
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
||||
mesh = SubResource("BoxMesh_8iti4")
|
||||
|
||||
[node name="StaticBody3D" type="StaticBody3D" parent="MeshInstance3D"]
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="MeshInstance3D/StaticBody3D"]
|
||||
shape = SubResource("BoxShape3D_pejvk")
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
root_node = NodePath("../MeshInstance3D")
|
||||
libraries = {
|
||||
"": SubResource("AnimationLibrary_r8evj")
|
||||
}
|
@@ -1,6 +1,6 @@
|
||||
[gd_scene load_steps=11 format=3 uid="uid://dqy8bqf1chm8c"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://dm8l36ephydnl" path="res://scenes/interaction_area.tscn" id="1_0okd0"]
|
||||
[ext_resource type="PackedScene" uid="uid://dm8l36ephydnl" path="res://scenes/objects/interaction_area.tscn" id="1_0okd0"]
|
||||
[ext_resource type="Script" path="res://scripts/interactables/completer/button_stand.gd" id="1_gkcm2"]
|
||||
|
||||
[sub_resource type="CylinderShape3D" id="CylinderShape3D_jpuiw"]
|
||||
|
@@ -1,33 +0,0 @@
|
||||
[gd_scene format=3 uid="uid://cfk83h5xyhmor"]
|
||||
|
||||
[node name="DebugScreen" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="ColorRect" type="ColorRect" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
color = Color(0, 1, 0.517647, 1)
|
||||
|
||||
[node name="Button" type="Button" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -22.0
|
||||
offset_top = -15.5
|
||||
offset_right = 22.0
|
||||
offset_bottom = 15.5
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
text = "TEST"
|
@@ -1,54 +0,0 @@
|
||||
[gd_scene load_steps=10 format=3 uid="uid://b8bvidqu7tmfs"]
|
||||
|
||||
[ext_resource type="PackedScene" uid="uid://cfk83h5xyhmor" path="res://scenes/objects/interactables/screens/debug_screen.tscn" id="1_q1qkj"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_sh78v"]
|
||||
|
||||
[sub_resource type="BoxMesh" id="BoxMesh_t4f0s"]
|
||||
|
||||
[sub_resource type="PrismMesh" id="PrismMesh_law6y"]
|
||||
|
||||
[sub_resource type="ViewportTexture" id="ViewportTexture_l2fsg"]
|
||||
viewport_path = NodePath("ScreenMesh/SubViewport")
|
||||
|
||||
[sub_resource type="ViewportTexture" id="ViewportTexture_ckudb"]
|
||||
viewport_path = NodePath("ScreenMesh/SubViewport")
|
||||
|
||||
[sub_resource type="ViewportTexture" id="ViewportTexture_01tli"]
|
||||
viewport_path = NodePath("ScreenMesh/SubViewport")
|
||||
|
||||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_7alnb"]
|
||||
resource_local_to_scene = true
|
||||
vertex_color_use_as_albedo = true
|
||||
albedo_texture = SubResource("ViewportTexture_l2fsg")
|
||||
rim_tint = 1.0
|
||||
rim_texture = SubResource("ViewportTexture_01tli")
|
||||
backlight_enabled = true
|
||||
backlight_texture = SubResource("ViewportTexture_ckudb")
|
||||
|
||||
[sub_resource type="PlaneMesh" id="PlaneMesh_hekp8"]
|
||||
resource_local_to_scene = true
|
||||
material = SubResource("StandardMaterial3D_7alnb")
|
||||
size = Vector2(1, 1)
|
||||
|
||||
[node name="TaskTerminal" type="StaticBody3D"]
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
shape = SubResource("BoxShape3D_sh78v")
|
||||
|
||||
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
||||
mesh = SubResource("BoxMesh_t4f0s")
|
||||
|
||||
[node name="MeshInstance3D2" type="MeshInstance3D" parent="."]
|
||||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0)
|
||||
mesh = SubResource("PrismMesh_law6y")
|
||||
|
||||
[node name="ScreenMesh" type="MeshInstance3D" parent="."]
|
||||
transform = Transform3D(-4.37114e-08, 0.891007, 0.453991, 0, 0.453991, -0.891007, -1, -3.89471e-08, -1.98446e-08, 0.255, 1, 0)
|
||||
mesh = SubResource("PlaneMesh_hekp8")
|
||||
|
||||
[node name="SubViewport" type="SubViewport" parent="ScreenMesh"]
|
||||
size_2d_override = Vector2i(512, 512)
|
||||
render_target_update_mode = 4
|
||||
|
||||
[node name="DebugScreen" parent="ScreenMesh/SubViewport" instance=ExtResource("1_q1qkj")]
|
44
scenes/objects/interaction_area.tscn
Normal file
44
scenes/objects/interaction_area.tscn
Normal file
@@ -0,0 +1,44 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://dm8l36ephydnl"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/interaction_area.gd" id="1_shkh8"]
|
||||
|
||||
[sub_resource type="BoxShape3D" id="BoxShape3D_xlssi"]
|
||||
|
||||
[sub_resource type="LabelSettings" id="LabelSettings_bc53a"]
|
||||
font_size = 18
|
||||
outline_size = 5
|
||||
outline_color = Color(0, 0, 0, 1)
|
||||
|
||||
[node name="InteractionArea" type="Area3D"]
|
||||
script = ExtResource("1_shkh8")
|
||||
|
||||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
|
||||
transform = Transform3D(1.5, 0, 0, 0, 1.5, 0, 0, 0, 1.5, 0, 1, 0)
|
||||
shape = SubResource("BoxShape3D_xlssi")
|
||||
|
||||
[node name="InteractionLabel" type="CanvasLayer" parent="."]
|
||||
visible = false
|
||||
|
||||
[node name="Control" type="Control" parent="InteractionLabel"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="Label" type="Label" parent="InteractionLabel/Control"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 2
|
||||
anchor_top = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = 7.0
|
||||
offset_top = -30.0
|
||||
offset_right = 127.0
|
||||
offset_bottom = -7.0
|
||||
grow_vertical = 0
|
||||
text = "[E] Interagieren"
|
||||
label_settings = SubResource("LabelSettings_bc53a")
|
||||
|
||||
[connection signal="body_entered" from="." to="." method="_on_body_entered"]
|
||||
[connection signal="body_exited" from="." to="." method="_on_body_exited"]
|
Reference in New Issue
Block a user