did a lot of stuff holy shit
This commit is contained in:
83
scenes/gui/menus/game_over.tscn
Normal file
83
scenes/gui/menus/game_over.tscn
Normal 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"]
|
Reference in New Issue
Block a user