did a lot of stuff holy shit

This commit is contained in:
2024-01-26 13:18:15 +01:00
parent 3ce02c2147
commit 8d237ae1d4
110 changed files with 2282 additions and 351 deletions

View File

@@ -0,0 +1,73 @@
[gd_scene load_steps=3 format=3 uid="uid://dvb7rkyyyllkc"]
[ext_resource type="Script" path="res://scripts/close_game_confirmation.gd" id="1_7dm65"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_2juxv"]
bg_color = Color(0, 0, 0, 0.482353)
corner_radius_top_left = 25
corner_radius_top_right = 25
corner_radius_bottom_right = 25
corner_radius_bottom_left = 25
[node name="CloseGameConfirmation" type="CanvasLayer"]
layer = 6
visible = false
script = ExtResource("1_7dm65")
[node name="Panel" type="Panel" parent="."]
custom_minimum_size = Vector2(615, 360)
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -446.0
offset_top = -278.0
offset_right = 446.0
offset_bottom = 278.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBoxFlat_2juxv")
[node name="RichTextLabel" type="RichTextLabel" parent="Panel"]
layout_mode = 2
offset_top = 116.0
offset_right = 892.0
offset_bottom = 356.0
size_flags_vertical = 4
theme_override_font_sizes/normal_font_size = 48
bbcode_enabled = true
text = "[center]Möchtest du das
Spiel beenden
und zurrück zum Hauptmenü
oder zurrück zum Desktop?"
fit_content = true
[node name="HBoxContainer" type="HBoxContainer" parent="Panel"]
layout_mode = 2
offset_left = 89.0
offset_top = 454.0
offset_right = 803.0
offset_bottom = 522.0
size_flags_horizontal = 4
size_flags_vertical = 8
theme_override_constants/separation = 170
[node name="MainMenu" type="Button" parent="Panel/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 0
size_flags_vertical = 4
focus_mode = 0
theme_override_font_sizes/font_size = 48
text = "Zum Hauptmenü"
[node name="Close" type="Button" parent="Panel/HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 8
focus_mode = 0
theme_override_font_sizes/font_size = 48
text = "Zum Desktop
"
[connection signal="pressed" from="Panel/HBoxContainer/MainMenu" to="." method="_on_main_menu_pressed"]
[connection signal="pressed" from="Panel/HBoxContainer/Close" to="." method="_on_close_pressed"]

View File

@@ -0,0 +1,78 @@
[gd_scene load_steps=9 format=3 uid="uid://cik0cjt5vdkxf"]
[ext_resource type="Script" path="res://scripts/menus/game_finished.gd" id="1_boc3n"]
[ext_resource type="FontFile" uid="uid://cr7a85ntk0t0k" path="res://assets/fonts/spacegrotesk_bold.ttf" id="2_6jsm4"]
[sub_resource type="LabelSettings" id="LabelSettings_0vtd5"]
font = ExtResource("2_6jsm4")
font_size = 90
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_wsdrp"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_pcy04"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_u03up"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_jpy2c"]
[sub_resource type="StyleBoxEmpty" id="StyleBoxEmpty_n6en7"]
[node name="GameFinished" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_boc3n")
[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, 0, 0, 1)
[node name="Label" type="Label" 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 = -702.0
offset_top = -117.5
offset_right = 702.0
offset_bottom = 117.5
grow_horizontal = 2
grow_vertical = 2
text = "Wow!
Du hast das Spiel durchgespielt!"
label_settings = SubResource("LabelSettings_0vtd5")
horizontal_alignment = 1
[node name="Button" type="Button" 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 = -63.0
offset_top = -50.0
offset_right = 63.0
offset_bottom = -9.0
grow_horizontal = 2
grow_vertical = 0
focus_mode = 0
theme_override_font_sizes/font_size = 32
theme_override_styles/normal = SubResource("StyleBoxEmpty_wsdrp")
theme_override_styles/hover = SubResource("StyleBoxEmpty_pcy04")
theme_override_styles/pressed = SubResource("StyleBoxEmpty_u03up")
theme_override_styles/disabled = SubResource("StyleBoxEmpty_jpy2c")
theme_override_styles/focus = SubResource("StyleBoxEmpty_n6en7")
text = "Hauptmenü"
[connection signal="pressed" from="Button" to="." method="_on_button_pressed"]

View File

@@ -0,0 +1,83 @@
[gd_scene load_steps=6 format=3 uid="uid://ceq785h1fcvq"]
[ext_resource type="Script" path="res://scripts/game_over.gd" id="1_oydw2"]
[ext_resource type="FontFile" uid="uid://cr7a85ntk0t0k" path="res://assets/fonts/spacegrotesk_bold.ttf" id="2_1rhse"]
[sub_resource type="Shader" id="Shader_1tfvw"]
code = "shader_type canvas_item;
uniform float blur_amount : hint_range(0, 5);
uniform sampler2D SCREEN_TEXTURE : hint_screen_texture, filter_linear_mipmap;
void fragment() {
COLOR = textureLod(SCREEN_TEXTURE, SCREEN_UV, blur_amount);
}"
[sub_resource type="ShaderMaterial" id="ShaderMaterial_08jax"]
shader = SubResource("Shader_1tfvw")
shader_parameter/blur_amount = 2.0
[sub_resource type="LabelSettings" id="LabelSettings_y2u7n"]
font = ExtResource("2_1rhse")
font_size = 72
[node name="GameOver" type="CanvasLayer"]
process_mode = 3
script = ExtResource("1_oydw2")
[node name="Blur" type="ColorRect" parent="."]
process_mode = 3
material = SubResource("ShaderMaterial_08jax")
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
metadata/_edit_use_anchors_ = true
[node name="ColorRect" type="ColorRect" parent="."]
process_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(1, 0, 0, 0.305882)
metadata/_edit_use_anchors_ = true
[node name="Label" type="Label" parent="."]
process_mode = 3
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -195.0
offset_top = -46.5
offset_right = 195.0
offset_bottom = 46.5
grow_horizontal = 2
grow_vertical = 2
text = "Game Over!"
label_settings = SubResource("LabelSettings_y2u7n")
metadata/_edit_use_anchors_ = true
[node name="Button" type="Button" parent="."]
process_mode = 3
anchors_preset = 7
anchor_left = 0.5
anchor_top = 1.0
anchor_right = 0.5
anchor_bottom = 1.0
offset_left = -138.5
offset_top = -155.0
offset_right = 138.5
offset_bottom = -82.0
grow_horizontal = 2
grow_vertical = 0
focus_mode = 0
theme_override_font_sizes/font_size = 32
text = "Level neustarten"
metadata/_edit_use_anchors_ = true
[connection signal="pressed" from="Button" to="." method="_on_button_pressed"]

View File

@@ -53,10 +53,7 @@ render_target_update_mode = 4
[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"]
[node name="Player" parent="SubViewportContainer/SubViewport/LVL1" index="2"]
visible = false
[node name="AudioListener3D" parent="SubViewportContainer/SubViewport/LVL1/Player/Camera3D" index="3"]

View File

@@ -2,7 +2,7 @@
[ext_resource type="Script" path="res://scripts/menus/pause_menu.gd" id="1_e70hy"]
[sub_resource type="Shader" id="Shader_1tfvw"]
[sub_resource type="Shader" id="Shader_y0jqs"]
code = "shader_type canvas_item;
uniform float blur_amount : hint_range(0, 5);
@@ -13,7 +13,7 @@ void fragment() {
}"
[sub_resource type="ShaderMaterial" id="ShaderMaterial_bxx1r"]
shader = SubResource("Shader_1tfvw")
shader = SubResource("Shader_y0jqs")
shader_parameter/blur_amount = 2.0
[node name="PauseMenu" type="CanvasLayer"]