feat: TEST DAY TEST DAY TEST DAY

This commit is contained in:
Sara 2025-06-02 17:17:49 +02:00
parent 7af00521df
commit 9dca189fa5
38 changed files with 592 additions and 102 deletions

59
project/ui/ui.tscn Normal file
View file

@ -0,0 +1,59 @@
[gd_scene load_steps=4 format=3 uid="uid://dy4yl1paa8whs"]
[ext_resource type="Texture2D" uid="uid://bglfaie21avpt" path="res://ui/vignette.png" id="1_nb4k0"]
[sub_resource type="Shader" id="Shader_ykyjo"]
code = "shader_type canvas_item;
global uniform float game_over_percentage = 0.0;
void vertex() {
// Called for every vertex the material is visible on.
}
void fragment() {
COLOR.r = COLOR.g = COLOR.b = 0.0;
COLOR.a = clamp(COLOR.a + game_over_percentage * 2.0 - 1.0, 0.0, 1.0);
}
//void light() {
// // Called for every pixel for every light affecting the CanvasItem.
// // Uncomment to replace the default light processing function with this one.
//}
"
[sub_resource type="ShaderMaterial" id="ShaderMaterial_uxov2"]
shader = SubResource("Shader_ykyjo")
[node name="CanvasLayer" type="GameUI"]
[node name="Vignette" type="TextureRect" parent="."]
material = SubResource("ShaderMaterial_uxov2")
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
size_flags_horizontal = 3
size_flags_vertical = 3
texture = ExtResource("1_nb4k0")
expand_mode = 2
[node name="MessageLabel" type="RichTextLabel" parent="."]
unique_name_in_owner = true
anchors_preset = 10
anchor_right = 1.0
offset_bottom = 195.0
grow_horizontal = 2
theme_override_font_sizes/normal_font_size = 60
text = "Good Luck!"
horizontal_alignment = 1
vertical_alignment = 1
[node name="ClearMessageTimer" type="Timer" parent="MessageLabel"]
unique_name_in_owner = true
wait_time = 5.0
one_shot = true
autostart = true
ignore_time_scale = true
[connection signal="timeout" from="MessageLabel/ClearMessageTimer" to="MessageLabel" method="set_text" flags=3 binds= [""]]

BIN
project/ui/vignette.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://bglfaie21avpt"
path="res://.godot/imported/vignette.png-fcc9b969d140e62ae5a80701deb118ec.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://ui/vignette.png"
dest_files=["res://.godot/imported/vignette.png-fcc9b969d140e62ae5a80701deb118ec.ctex"]
[params]
compress/mode=0
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=0
compress/channel_pack=0
mipmaps/generate=false
mipmaps/limit=-1
roughness/mode=0
roughness/src_normal=""
process/fix_alpha_border=true
process/premult_alpha=false
process/normal_map_invert_y=false
process/hdr_as_srgb=false
process/hdr_clamp_exposure=false
process/size_limit=0
detect_3d/compress_to=1