3d models and stuff

This commit is contained in:
2024-01-25 15:22:01 +01:00
parent 649c83030d
commit a72973d28a
41 changed files with 325 additions and 51 deletions

View File

@@ -5,8 +5,8 @@
[ext_resource type="Environment" uid="uid://drn5fwa4uhv4m" path="res://resources/environment.tres" id="1_vtn44"]
[ext_resource type="Material" uid="uid://b6r8e4302xg1d" path="res://assets/materials/dark_metal.material" id="2_qrl87"]
[ext_resource type="Shader" path="res://shaders/pbr_glass.gdshader" id="3_aeppb"]
[ext_resource type="Texture2D" uid="uid://bjx2i53wtjair" path="res://assets/textures/crosshair.png" id="7_4s8bm"]
[ext_resource type="Texture2D" uid="uid://b4en3dw3q324p" path="res://assets/textures/circle.png" id="8_al3c7"]
[ext_resource type="Texture2D" uid="uid://b4en3dw3q324p" path="res://assets/textures/circle.png" id="6_bmyqq"]
[ext_resource type="Texture2D" uid="uid://bjx2i53wtjair" path="res://assets/textures/gui/crosshair.png" id="7_2qfex"]
[sub_resource type="World3D" id="World3D_wp4pn"]
environment = ExtResource("1_vtn44")
@@ -66,7 +66,7 @@ collision_use_scale = true
transparency = 2
alpha_scissor_threshold = 0.9
alpha_antialiasing_mode = 0
albedo_texture = ExtResource("8_al3c7")
albedo_texture = ExtResource("6_bmyqq")
emission_enabled = true
emission = Color(0.784314, 0.396078, 0, 1)
emission_energy_multiplier = 16.0
@@ -135,7 +135,7 @@ transparent_bg = true
handle_input_locally = false
scaling_3d_scale = 2.0
sdf_scale = 0
size = Vector2i(1152, 648)
size = Vector2i(1980, 1080)
size_2d_override_stretch = true
render_target_update_mode = 4
script = SubResource("GDScript_sr7lp")
@@ -215,6 +215,6 @@ grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 4
size_flags_vertical = 4
texture = ExtResource("7_4s8bm")
texture = ExtResource("7_2qfex")
[connection signal="visibility_changed" from="." to="." method="_on_visibility_changed"]

View File

@@ -1,9 +1,11 @@
[gd_scene load_steps=5 format=3 uid="uid://dji1rniuusnmy"]
[gd_scene load_steps=8 format=3 uid="uid://dji1rniuusnmy"]
[ext_resource type="Script" path="res://scripts/menus/main_menu.gd" id="1_1osxu"]
[ext_resource type="PackedScene" uid="uid://ckad8stc13n83" path="res://scenes/levels/lvl_1.tscn" id="2_pnids"]
[ext_resource type="Texture2D" uid="uid://drg0qhwicg2df" path="res://assets/textures/gui/logo.png" id="3_a5ih4"]
[ext_resource type="FontFile" uid="uid://cr7a85ntk0t0k" path="res://assets/fonts/spacegrotesk_bold.ttf" id="4_26y7w"]
[sub_resource type="LabelSettings" id="LabelSettings_yh38l"]
font_size = 40
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_sr4tr"]
[sub_resource type="InputEventAction" id="InputEventAction_bc05y"]
action = &"ui_accept"
@@ -20,44 +22,94 @@ grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_1osxu")
[node name="LogoContainer" type="VBoxContainer" parent="."]
[node name="SubViewportContainer" type="SubViewportContainer" parent="."]
self_modulate = Color(0.356863, 0.356863, 0.356863, 1)
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -197.0
offset_top = -88.5
offset_right = 197.0
offset_bottom = 88.5
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
metadata/_edit_lock_ = true
[node name="Title" type="Label" parent="LogoContainer"]
layout_mode = 2
size_flags_horizontal = 4
text = "Project
Thought Experiment"
label_settings = SubResource("LabelSettings_yh38l")
horizontal_alignment = 1
[node name="SubViewport" type="SubViewport" parent="SubViewportContainer"]
handle_input_locally = false
size = Vector2i(1980, 1080)
render_target_update_mode = 4
[node name="StartGame" type="Button" parent="."]
[node name="LVL1" parent="SubViewportContainer/SubViewport" instance=ExtResource("2_pnids")]
[node name="Camera3D" parent="SubViewportContainer/SubViewport/LVL1/Player" index="1"]
current = false
[node name="SpringArm3D" parent="SubViewportContainer/SubViewport/LVL1/Player/Camera3D" index="1"]
visible = false
[node name="AudioListener3D" parent="SubViewportContainer/SubViewport/LVL1/Player/Camera3D" index="3"]
current = true
[node name="GravityGunLayer" parent="SubViewportContainer/SubViewport/LVL1/Player" index="2"]
visible = false
[node name="SubViewport" parent="SubViewportContainer/SubViewport/LVL1/Player/GravityGunLayer/SubViewportContainer" index="0"]
render_target_update_mode = 0
[node name="Camera3D" parent="SubViewportContainer/SubViewport/LVL1" index="12"]
current = true
[node name="TextureRect" type="TextureRect" parent="."]
custom_minimum_size = Vector2(265, 95.4)
layout_mode = 0
offset_left = 128.0
offset_top = 12.0
offset_right = 393.0
offset_bottom = 171.0
texture = ExtResource("3_a5ih4")
expand_mode = 1
metadata/_edit_lock_ = true
[node name="ButtonCOntainer" type="VBoxContainer" parent="."]
layout_mode = 1
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -53.0
offset_top = -93.0
offset_right = 53.0
offset_bottom = -62.0
grow_horizontal = 2
grow_vertical = 0
anchors_preset = 6
anchor_left = 1.0
anchor_top = 0.5
anchor_right = 1.0
anchor_bottom = 0.5
offset_left = -783.0
offset_top = -190.0
offset_right = -128.0
offset_bottom = 190.0
grow_horizontal = 0
grow_vertical = 2
[node name="StartGame" type="Button" parent="ButtonCOntainer"]
layout_mode = 2
focus_mode = 0
theme_override_fonts/font = ExtResource("4_26y7w")
theme_override_font_sizes/font_size = 96
theme_override_styles/normal = SubResource("StyleBoxEmpty_sr4tr")
shortcut = SubResource("Shortcut_fasub")
shortcut_in_tooltip = false
text = "Spiel starten"
[connection signal="pressed" from="StartGame" to="." method="_on_start_game_pressed"]
[node name="Levelselect" type="Button" parent="ButtonCOntainer"]
layout_mode = 2
theme_override_fonts/font = ExtResource("4_26y7w")
theme_override_font_sizes/font_size = 96
theme_override_styles/normal = SubResource("StyleBoxEmpty_sr4tr")
text = "Levelauswahl"
[node name="QuitGame" type="Button" parent="ButtonCOntainer"]
layout_mode = 2
theme_override_fonts/font = ExtResource("4_26y7w")
theme_override_font_sizes/font_size = 96
theme_override_styles/normal = SubResource("StyleBoxEmpty_sr4tr")
text = "Spiel beenden"
[connection signal="pressed" from="ButtonCOntainer/StartGame" to="." method="_on_start_game_pressed"]
[editable path="SubViewportContainer/SubViewport/LVL1"]
[editable path="SubViewportContainer/SubViewport/LVL1/interior"]
[editable path="SubViewportContainer/SubViewport/LVL1/Player"]
[editable path="SubViewportContainer/SubViewport/LVL1/Player/GravityGunLayer"]
[editable path="SubViewportContainer/SubViewport/LVL1/AudioSubtitleSystem"]

View File

@@ -37,26 +37,29 @@ anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -20.0
offset_top = -20.0
offset_right = 20.0
offset_bottom = 20.0
offset_left = -262.0
offset_top = -101.5
offset_right = 262.0
offset_bottom = 101.5
grow_horizontal = 2
grow_vertical = 2
[node name="Continue" type="Button" parent="VBoxContainer"]
process_mode = 3
layout_mode = 2
theme_override_font_sizes/font_size = 46
text = "Weiter spielen"
[node name="RestartLevel" type="Button" parent="VBoxContainer"]
process_mode = 3
layout_mode = 2
theme_override_font_sizes/font_size = 46
text = "Level neu starten"
[node name="CloseLevel" type="Button" parent="VBoxContainer"]
process_mode = 3
layout_mode = 2
theme_override_font_sizes/font_size = 46
text = "Beenden"
[connection signal="pressed" from="VBoxContainer/Continue" to="." method="_on_continue_pressed"]

View File

@@ -98,6 +98,9 @@ shape = SubResource("BoxShape3D_lygjd")
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 4.27434, 3)
voice_lines = Array[ExtResource("18_jxpoe")]([SubResource("Resource_u3j5u"), SubResource("Resource_3g4yn"), SubResource("Resource_6wqks"), SubResource("Resource_im7qv")])
[node name="Camera3D" type="Camera3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 0.965926, 0.258819, 0, -0.258819, 0.965926, 0, 3, 6)
[connection signal="lock" from="CompletionCounter" to="Door" method="close"]
[connection signal="unlock" from="CompletionCounter" to="Door" method="open"]