diff --git a/godot/scenes/Tim.gd b/godot/scenes/Tim.gd index f8cd89c..7447bc9 100644 --- a/godot/scenes/Tim.gd +++ b/godot/scenes/Tim.gd @@ -70,6 +70,7 @@ func _on_stamina_empty(): var fade = get_node("/root/IngameScene/UI/FadeOverlay") fade.modulate.a = fade.minimum_opacity fade.visible = true + get_node("/root/IngameScene/UI/Curtain").visible = true get_viewport().set_input_as_handled() get_tree().paused = true diff --git a/godot/scenes/ingame_scene.tscn b/godot/scenes/ingame_scene.tscn index 136b4d7..88c78f7 100644 --- a/godot/scenes/ingame_scene.tscn +++ b/godot/scenes/ingame_scene.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=7 format=3 uid="uid://cik30de5gaaah"] +[gd_scene load_steps=8 format=3 uid="uid://cik30de5gaaah"] [ext_resource type="Script" path="res://scenes/ingame_scene.gd" id="1_objyc"] [ext_resource type="PackedScene" uid="uid://bkk87o2ooo6at" path="res://ui/overlays/fade_overlay.tscn" id="1_y6ebv"] @@ -6,6 +6,7 @@ [ext_resource type="PackedScene" uid="uid://b0xc4jjyahlvk" path="res://scenes/score_overlay.tscn" id="3_yvlw3"] [ext_resource type="PackedScene" uid="uid://bx6htkgx23t8v" path="res://scenes/crowd/crowd.tscn" id="4_aeh13"] [ext_resource type="PackedScene" uid="uid://cicyfp5xjvvu4" path="res://scenes/stage.tscn" id="5_borcq"] +[ext_resource type="Texture2D" uid="uid://c8nhtntxhrfaq" path="res://sprites/room/curtain.svg" id="5_ykdj2"] [node name="IngameScene" type="Node2D"] script = ExtResource("1_objyc") @@ -23,6 +24,23 @@ position = Vector2(291, 346) unique_name_in_owner = true visible = false +[node name="Curtain" type="Control" parent="UI"] +visible = false +layout_mode = 3 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 + +[node name="TextureRect" type="TextureRect" parent="UI/Curtain"] +layout_mode = 0 +offset_right = 576.0 +offset_bottom = 324.0 +texture = ExtResource("5_ykdj2") +expand_mode = 2 +stretch_mode = 4 + [node name="ScoreOverlay" parent="UI" instance=ExtResource("3_yvlw3")] unique_name_in_owner = true visible = false diff --git a/godot/sprites/room/curtain.svg b/godot/sprites/room/curtain.svg new file mode 100644 index 0000000..39dbec8 --- /dev/null +++ b/godot/sprites/room/curtain.svg @@ -0,0 +1,161 @@ + + + + diff --git a/godot/sprites/room/curtain.svg.import b/godot/sprites/room/curtain.svg.import new file mode 100644 index 0000000..4e71d19 --- /dev/null +++ b/godot/sprites/room/curtain.svg.import @@ -0,0 +1,37 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://c8nhtntxhrfaq" +path="res://.godot/imported/curtain.svg-0e81b667ce9dc117892a1828f829b9e3.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://sprites/room/curtain.svg" +dest_files=["res://.godot/imported/curtain.svg-0e81b667ce9dc117892a1828f829b9e3.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 +svg/scale=1.0 +editor/scale_with_editor_scale=false +editor/convert_colors_with_editor_theme=false