diff --git a/globals.gd b/globals.gd new file mode 100644 index 0000000..c5f9c7e --- /dev/null +++ b/globals.gd @@ -0,0 +1,12 @@ +extends Node + +var is_transitioning = false + +# Called when the node enters the scene tree for the first time. +func _ready() -> void: + pass # Replace with function body. + + +# Called every frame. 'delta' is the elapsed time since the previous frame. +func _process(delta: float) -> void: + pass diff --git a/main_hub.gd b/main_hub.gd index 4c42295..2602e92 100644 --- a/main_hub.gd +++ b/main_hub.gd @@ -19,6 +19,8 @@ func _ready() -> void: add_child(bedroom) add_child(text_screens) + + #Naming Scenes title_screen.name = "TitleScreen" office.name = "Office" @@ -30,11 +32,7 @@ func _ready() -> void: office.hide() bedroom.hide() - #Hiding Text_Screens - text_screens.hide() - for scene in $TextScreens/MarginContainer.get_children(): - scene.hide() - $TextScreens/SkipContainer.hide() + #Showing TitleScreen title_screen.show() #Connecting Signals @@ -53,23 +51,29 @@ func _process(delta: float) -> void: # Starts a new game func _on_new_game_pressed(): - transition([$TitleScreen], [$TextScreens, $TextScreens/MarginContainer/TextIntro1, $TextScreens/SkipContainer]) - await $TextScreens.slide_finished - transition([$TextScreens/MarginContainer/TextIntro1], [$TextScreens/MarginContainer/TextIntro2]) - await $TextScreens.slide_finished - transition([$TextScreens/MarginContainer/TextIntro2], [$TextScreens/MarginContainer/TextIntro3]) - await $TextScreens.slide_finished - transition([$TextScreens/MarginContainer/TextIntro3], [$TextScreens/MarginContainer/TextIntro4]) - await $TextScreens.slide_finished - transition([$TextScreens/MarginContainer/TextIntro4], [$TextScreens/MarginContainer/TextIntro5]) + + var text_container = $TextScreens/MarginContainer/IntroBoxContainer/TextContainer + + transition("big", [$TitleScreen], [$TextScreens, text_container.get_child(0)]) + await $TextScreens.on_transition_finished + + for i in 4: + transition("small", [text_container.get_child(i)], [text_container.get_child(i+1)]) + await $TextScreens.on_transition_finished + # Takes care of fading transitions between scenes -func transition(scenes_to_hide, scenes_to_show): - TransitionScreen.transition() - await TransitionScreen.on_transition_finished +func transition(size, scenes_to_hide, scenes_to_show): + + TransitionScreen.transition(size) + + await TransitionScreen.on_fading_finished for scene in scenes_to_hide: scene.hide() for scene in scenes_to_show: scene.show() + + + diff --git a/project.godot b/project.godot index 122aa0a..f2c152d 100644 --- a/project.godot +++ b/project.godot @@ -17,7 +17,7 @@ config/features=PackedStringArray("4.3", "Forward Plus") [autoload] TransitionScreen="*res://transition_screen.tscn" -Global="*res://global.gd" +Globals="*res://globals.gd" [display] @@ -25,3 +25,19 @@ window/size/viewport_width=1920 window/size/viewport_height=1080 window/size/borderless=true window/stretch/mode="canvas_items" + +[input] + +ui_accept={ +"deadzone": 0.5, +"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":4194309,"physical_keycode":0,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null) +, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":4194310,"physical_keycode":0,"key_label":0,"unicode":0,"location":0,"echo":false,"script":null) +, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":32,"physical_keycode":0,"key_label":0,"unicode":32,"location":0,"echo":false,"script":null) +] +} +ui_select={ +"deadzone": 0.5, +"events": [Object(InputEventJoypadButton,"resource_local_to_scene":false,"resource_name":"","device":0,"button_index":3,"pressure":0.0,"pressed":false,"script":null) +, Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":0,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":32,"physical_keycode":0,"key_label":0,"unicode":32,"location":0,"echo":false,"script":null) +] +} diff --git a/texC9CD.tmp b/texC9CD.tmp new file mode 100644 index 0000000..8137207 --- /dev/null +++ b/texC9CD.tmp @@ -0,0 +1,210 @@ +[gd_scene load_steps=4 format=3 uid="uid://igkl2384rxt1"] + +[ext_resource type="Script" path="res://text_screens.gd" id="1_16laq"] +[ext_resource type="FontFile" uid="uid://ckg5x0oonnjtn" path="res://Art/XanhMono-Regular.ttf" id="2_i0l2q"] +[ext_resource type="FontFile" uid="uid://mi5v1uq78g7o" path="res://Art/XanhMono-Italic.ttf" id="3_i5n2a"] + +[node name="TextScreens" type="CanvasLayer"] +script = ExtResource("1_16laq") + +[node name="Background" type="ColorRect" parent="."] +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="MarginContainer" type="MarginContainer" parent="."] +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +theme_override_constants/margin_left = 100 +theme_override_constants/margin_top = 100 +theme_override_constants/margin_right = 100 +theme_override_constants/margin_bottom = 100 + +[node name="IntroBoxContainer" type="BoxContainer" parent="MarginContainer"] +layout_mode = 2 +vertical = true + +[node name="Header" type="RichTextLabel" parent="MarginContainer/IntroBoxContainer"] +clip_contents = false +custom_minimum_size = Vector2(10, 0) +layout_mode = 2 +size_flags_vertical = 3 +size_flags_stretch_ratio = 0.2 +theme_override_fonts/normal_font = ExtResource("2_i0l2q") +theme_override_fonts/mono_font = ExtResource("2_i0l2q") +theme_override_fonts/italics_font = ExtResource("3_i5n2a") +theme_override_font_sizes/bold_italics_font_size = 30 +theme_override_font_sizes/italics_font_size = 30 +theme_override_font_sizes/mono_font_size = 30 +theme_override_font_sizes/normal_font_size = 30 +theme_override_font_sizes/bold_font_size = 30 +text = "French Republic, Paris, October 12th 2053 + +78 days since the Abnormality" +tab_size = 8 + +[node name="Separator" type="RichTextLabel" parent="MarginContainer/IntroBoxContainer"] +layout_mode = 2 +size_flags_vertical = 3 +size_flags_stretch_ratio = 0.2 + +[node name="TextContainer" type="MarginContainer" parent="MarginContainer/IntroBoxContainer"] +layout_mode = 2 +size_flags_vertical = 3 + +[node name="TextIntro1" type="RichTextLabel" parent="MarginContainer/IntroBoxContainer/TextContainer"] +clip_contents = false +custom_minimum_size = Vector2(10, 0) +layout_mode = 2 +theme_override_fonts/normal_font = ExtResource("2_i0l2q") +theme_override_fonts/mono_font = ExtResource("2_i0l2q") +theme_override_fonts/italics_font = ExtResource("3_i5n2a") +theme_override_font_sizes/bold_italics_font_size = 30 +theme_override_font_sizes/italics_font_size = 30 +theme_override_font_sizes/mono_font_size = 30 +theme_override_font_sizes/normal_font_size = 30 +theme_override_font_sizes/bold_font_size = 30 +text = "It's been almost 3 months already since it all began. + +We thought it as a mere pandemic, yet another crisis amongst the dozens we had to bear for the past decade. + +A few hundred thousand deaths, twice the governmental lies, thrice the social media memes. + +Add in a pinch of conspiracy, season abundantly with senseless blaming, and the media would eventually move on to the next money-grabbing controversy. + + + +How i wish we still lived in those times." +tab_size = 8 + +[node name="TextIntro2" type="RichTextLabel" parent="MarginContainer/IntroBoxContainer/TextContainer"] +clip_contents = false +custom_minimum_size = Vector2(10, 0) +layout_mode = 2 +theme_override_fonts/normal_font = ExtResource("2_i0l2q") +theme_override_fonts/mono_font = ExtResource("2_i0l2q") +theme_override_fonts/italics_font = ExtResource("3_i5n2a") +theme_override_font_sizes/bold_italics_font_size = 30 +theme_override_font_sizes/italics_font_size = 30 +theme_override_font_sizes/mono_font_size = 30 +theme_override_font_sizes/normal_font_size = 30 +theme_override_font_sizes/bold_font_size = 30 +bbcode_enabled = true +text = "The nightmares came first. Whispers from afar, soft, humming, comforting even. Slowly seeping into one's mind. +And then, the unexplainable. Things that the mind cannot comprehend, cannot write nor speak. + +The [i]Abnormal[/i]. + +Those with severe mental illnesses were the most vulnerable to It. + +Every trained psychiatrist from Saigon to Paris swiftly waltzed to the afterlife last month, murdered by the very patients they were trying to help. + +Deaths unbearable to witness, corpses disfigured beyond any rationality. + + +10 days ago, it started happening to the sane. +" +tab_size = 8 + +[node name="TextIntro3" type="RichTextLabel" parent="MarginContainer/IntroBoxContainer/TextContainer"] +clip_contents = false +custom_minimum_size = Vector2(10, 0) +layout_mode = 2 +theme_override_fonts/normal_font = ExtResource("2_i0l2q") +theme_override_fonts/mono_font = ExtResource("2_i0l2q") +theme_override_fonts/italics_font = ExtResource("3_i5n2a") +theme_override_font_sizes/bold_italics_font_size = 30 +theme_override_font_sizes/italics_font_size = 30 +theme_override_font_sizes/mono_font_size = 30 +theme_override_font_sizes/normal_font_size = 30 +theme_override_font_sizes/bold_font_size = 30 +bbcode_enabled = true +text = "Global curfew all around the globe. +Containment attempts by the military even though It seems to propagate regardless of any safety measure. +Mass executions. + +I don't watch the news anymore. + +Disinformation was a delicacy in times of boredom, now it tastes somewhere between bitter resentment and sour resignation. + + + +Maybe science can save us. Probably not, but we have to believe. I have to believe. What other choice is there ? + + +" +tab_size = 8 + +[node name="TextIntro4" type="RichTextLabel" parent="MarginContainer/IntroBoxContainer/TextContainer"] +clip_contents = false +custom_minimum_size = Vector2(10, 0) +layout_mode = 2 +theme_override_fonts/normal_font = ExtResource("2_i0l2q") +theme_override_fonts/mono_font = ExtResource("2_i0l2q") +theme_override_fonts/italics_font = ExtResource("3_i5n2a") +theme_override_font_sizes/bold_italics_font_size = 30 +theme_override_font_sizes/italics_font_size = 30 +theme_override_font_sizes/mono_font_size = 30 +theme_override_font_sizes/normal_font_size = 30 +theme_override_font_sizes/bold_font_size = 30 +bbcode_enabled = true +text = "I applied to help with psychiatric research, a fancy name for suicide at the hands of Abnormals. + +Since every senior psychiatrist teleported to the afterlife, the higher-ups gave us a 2-weeks crash course before hurling us to the frontlines. + + +I am to screen the patients. Separate the Abnormals from the normally insane. + +Filter the acceptably unhinged from the anomalously disturbed. + +So we may dissect the ones for research, and execute the others for safety." +tab_size = 8 + +[node name="TextIntro5" type="RichTextLabel" parent="MarginContainer/IntroBoxContainer/TextContainer"] +clip_contents = false +custom_minimum_size = Vector2(10, 0) +layout_mode = 2 +theme_override_fonts/normal_font = ExtResource("2_i0l2q") +theme_override_fonts/mono_font = ExtResource("2_i0l2q") +theme_override_fonts/italics_font = ExtResource("3_i5n2a") +theme_override_font_sizes/bold_italics_font_size = 30 +theme_override_font_sizes/italics_font_size = 30 +theme_override_font_sizes/mono_font_size = 30 +theme_override_font_sizes/normal_font_size = 30 +theme_override_font_sizes/bold_font_size = 30 +bbcode_enabled = true +text = "I am not qualified. + +I do not belong. + +And yet I have to try. + + + +For in these times of strife, I finally get to [i]matter[/i]." +tab_size = 8 + +[node name="SkipContainer" type="CenterContainer" parent="."] +anchors_preset = 3 +anchor_left = 1.0 +anchor_top = 1.0 +anchor_right = 1.0 +anchor_bottom = 1.0 +offset_left = -400.0 +offset_top = -200.0 +grow_horizontal = 0 +grow_vertical = 0 + +[node name="SkipButton" type="Button" parent="SkipContainer"] +custom_minimum_size = Vector2(200, 100) +layout_mode = 2 +theme_override_font_sizes/font_size = 40 +text = "Next" +icon_alignment = 1 +vertical_icon_alignment = 0 diff --git a/text_screens.gd b/text_screens.gd index 5b7f1d0..e989c2f 100644 --- a/text_screens.gd +++ b/text_screens.gd @@ -1,19 +1,40 @@ extends CanvasLayer -@onready var text_container = $MarginContainer/TextContainer +@onready var intro_text_container = $MarginContainer/IntroBoxContainer/TextContainer @onready var skip = $SkipContainer/SkipButton -signal slide_finished +signal on_skip_request +signal on_transition_finished # Called when the node enters the scene tree for the first time. func _ready() -> void: skip.pressed.connect(_on_skip_pressed) + self.connect("on_skip_request", _on_skip_request) - pass # Replace with function body. + self.hide() + for node in intro_text_container.get_children(): + node.hide() + + func _on_skip_pressed(): - slide_finished.emit() + if Globals.is_transitioning == false: + on_skip_request.emit() + else: + pass + + +func _input(event): + if event is InputEventKey and event.pressed and Globals.is_transitioning == false: + if event.keycode == KEY_SPACE: + on_skip_request.emit() + + +func _on_skip_request(): + if Globals.is_transitioning == false: + on_transition_finished.emit() + # Called every frame. 'delta' is the elapsed time since the previous frame. func _process(delta: float) -> void: diff --git a/text_screens.tscn b/text_screens.tscn index 7a7675f..8137207 100644 --- a/text_screens.tscn +++ b/text_screens.tscn @@ -7,7 +7,7 @@ [node name="TextScreens" type="CanvasLayer"] script = ExtResource("1_16laq") -[node name="ColorRect" type="ColorRect" parent="."] +[node name="Background" type="ColorRect" parent="."] anchors_preset = 15 anchor_right = 1.0 anchor_bottom = 1.0 @@ -26,7 +26,39 @@ theme_override_constants/margin_top = 100 theme_override_constants/margin_right = 100 theme_override_constants/margin_bottom = 100 -[node name="TextIntro1" type="RichTextLabel" parent="MarginContainer"] +[node name="IntroBoxContainer" type="BoxContainer" parent="MarginContainer"] +layout_mode = 2 +vertical = true + +[node name="Header" type="RichTextLabel" parent="MarginContainer/IntroBoxContainer"] +clip_contents = false +custom_minimum_size = Vector2(10, 0) +layout_mode = 2 +size_flags_vertical = 3 +size_flags_stretch_ratio = 0.2 +theme_override_fonts/normal_font = ExtResource("2_i0l2q") +theme_override_fonts/mono_font = ExtResource("2_i0l2q") +theme_override_fonts/italics_font = ExtResource("3_i5n2a") +theme_override_font_sizes/bold_italics_font_size = 30 +theme_override_font_sizes/italics_font_size = 30 +theme_override_font_sizes/mono_font_size = 30 +theme_override_font_sizes/normal_font_size = 30 +theme_override_font_sizes/bold_font_size = 30 +text = "French Republic, Paris, October 12th 2053 + +78 days since the Abnormality" +tab_size = 8 + +[node name="Separator" type="RichTextLabel" parent="MarginContainer/IntroBoxContainer"] +layout_mode = 2 +size_flags_vertical = 3 +size_flags_stretch_ratio = 0.2 + +[node name="TextContainer" type="MarginContainer" parent="MarginContainer/IntroBoxContainer"] +layout_mode = 2 +size_flags_vertical = 3 + +[node name="TextIntro1" type="RichTextLabel" parent="MarginContainer/IntroBoxContainer/TextContainer"] clip_contents = false custom_minimum_size = Vector2(10, 0) layout_mode = 2 @@ -38,13 +70,7 @@ theme_override_font_sizes/italics_font_size = 30 theme_override_font_sizes/mono_font_size = 30 theme_override_font_sizes/normal_font_size = 30 theme_override_font_sizes/bold_font_size = 30 -text = "French Republic, Paris, 12th October 2053 - -78 days since the Abnormality - - - -It's been almost 3 months already since it all began. +text = "It's been almost 3 months already since it all began. We thought it as a mere pandemic, yet another crisis amongst the dozens we had to bear for the past decade. @@ -57,7 +83,7 @@ Add in a pinch of conspiracy, season abundantly with senseless blaming, and the How i wish we still lived in those times." tab_size = 8 -[node name="TextIntro2" type="RichTextLabel" parent="MarginContainer"] +[node name="TextIntro2" type="RichTextLabel" parent="MarginContainer/IntroBoxContainer/TextContainer"] clip_contents = false custom_minimum_size = Vector2(10, 0) layout_mode = 2 @@ -70,13 +96,7 @@ theme_override_font_sizes/mono_font_size = 30 theme_override_font_sizes/normal_font_size = 30 theme_override_font_sizes/bold_font_size = 30 bbcode_enabled = true -text = "French Republic, Paris, 12th October 2053 - -78 days since the Abnormality - - - -The nightmares came first. Whispers from afar, soft, humming, comforting even. Slowly seeping into one's mind. +text = "The nightmares came first. Whispers from afar, soft, humming, comforting even. Slowly seeping into one's mind. And then, the unexplainable. Things that the mind cannot comprehend, cannot write nor speak. The [i]Abnormal[/i]. @@ -92,7 +112,7 @@ Deaths unbearable to witness, corpses disfigured beyond any rationality. " tab_size = 8 -[node name="TextIntro3" type="RichTextLabel" parent="MarginContainer"] +[node name="TextIntro3" type="RichTextLabel" parent="MarginContainer/IntroBoxContainer/TextContainer"] clip_contents = false custom_minimum_size = Vector2(10, 0) layout_mode = 2 @@ -105,20 +125,13 @@ theme_override_font_sizes/mono_font_size = 30 theme_override_font_sizes/normal_font_size = 30 theme_override_font_sizes/bold_font_size = 30 bbcode_enabled = true -text = "French Republic, Paris, 12th October 2053 - -78 days since the Abnormality - - - -Global curfew all around the globe. +text = "Global curfew all around the globe. Containment attempts by the military even though It seems to propagate regardless of any safety measure. Mass executions. I don't watch the news anymore. -Disinformation is a delicacy in times of boredom. -Now it tastes somewhere between bitter resentment and sour resignation. +Disinformation was a delicacy in times of boredom, now it tastes somewhere between bitter resentment and sour resignation. @@ -128,7 +141,7 @@ Maybe science can save us. Probably not, but we have to believe. I have to belie " tab_size = 8 -[node name="TextIntro4" type="RichTextLabel" parent="MarginContainer"] +[node name="TextIntro4" type="RichTextLabel" parent="MarginContainer/IntroBoxContainer/TextContainer"] clip_contents = false custom_minimum_size = Vector2(10, 0) layout_mode = 2 @@ -141,13 +154,7 @@ theme_override_font_sizes/mono_font_size = 30 theme_override_font_sizes/normal_font_size = 30 theme_override_font_sizes/bold_font_size = 30 bbcode_enabled = true -text = "French Republic, Paris, 12th October 2053 - -78 days since the Abnormality - - - -I applied to help with psychiatric research, a fancy name for suicide at the hands of Abnormals. +text = "I applied to help with psychiatric research, a fancy name for suicide at the hands of Abnormals. Since every senior psychiatrist teleported to the afterlife, the higher-ups gave us a 2-weeks crash course before hurling us to the frontlines. @@ -159,7 +166,7 @@ Filter the acceptably unhinged from the anomalously disturbed. So we may dissect the ones for research, and execute the others for safety." tab_size = 8 -[node name="TextIntro5" type="RichTextLabel" parent="MarginContainer"] +[node name="TextIntro5" type="RichTextLabel" parent="MarginContainer/IntroBoxContainer/TextContainer"] clip_contents = false custom_minimum_size = Vector2(10, 0) layout_mode = 2 @@ -172,13 +179,7 @@ theme_override_font_sizes/mono_font_size = 30 theme_override_font_sizes/normal_font_size = 30 theme_override_font_sizes/bold_font_size = 30 bbcode_enabled = true -text = "French Republic, Paris, 12th October 2053 - -78 days since the Abnormality - - - -I am not qualified. +text = "I am not qualified. I do not belong. @@ -204,6 +205,6 @@ grow_vertical = 0 custom_minimum_size = Vector2(200, 100) layout_mode = 2 theme_override_font_sizes/font_size = 40 -text = "Skip" +text = "Next" icon_alignment = 1 vertical_icon_alignment = 0 diff --git a/transition_screen.gd b/transition_screen.gd index 6bf40d5..cc20660 100644 --- a/transition_screen.gd +++ b/transition_screen.gd @@ -1,26 +1,44 @@ extends CanvasLayer +signal on_fading_finished signal on_transition_finished -@onready var color_rect = $ColorRect -@onready var animation_player = $AnimationPlayer +@onready var big_fading = $BigFading +@onready var small_fading = $SmallFading +@onready var big_animation = $BigFading/BigFadingAnimation +@onready var small_animation = $SmallFading/SmallFadingAnimation # Called when the node enters the scene tree for the first time. func _ready() -> void: - color_rect.visible = false - animation_player.connect("animation_finished", _on_animation_finished) + big_fading.visible = false + small_fading.visible = false + big_animation.connect("animation_finished", _on_animation_finished) + small_animation.connect("animation_finished", _on_animation_finished) func _on_animation_finished(anim_name): if anim_name == "fade_to_black": - on_transition_finished.emit() - animation_player.play("fade_to_normal") + on_fading_finished.emit() + big_animation.play("fade_to_normal") + small_animation.play("fade_to_normal") + elif anim_name == "fade_to_normal": - color_rect.visible = false + on_transition_finished.emit() + Globals.is_transitioning = false + big_fading.visible = false + small_fading.visible = false + -func transition(): - color_rect.visible = true - animation_player.play("fade_to_black") +func transition(size): + + Globals.is_transitioning = true + + if size == "big": + big_fading.visible = true + big_animation.play("fade_to_black") + elif size == "small": + small_fading.visible = true + small_animation.play("fade_to_black") diff --git a/transition_screen.tscn b/transition_screen.tscn index 0ca03cf..2f6a2f6 100644 --- a/transition_screen.tscn +++ b/transition_screen.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=6 format=3 uid="uid://drk1l7ijo4xq5"] +[gd_scene load_steps=10 format=3 uid="uid://drk1l7ijo4xq5"] [ext_resource type="Script" path="res://transition_screen.gd" id="1_hbjtk"] @@ -7,7 +7,7 @@ length = 0.001 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true -tracks/0/path = NodePath("ColorRect:modulate") +tracks/0/path = NodePath("BigFading:modulate") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { @@ -23,7 +23,7 @@ length = 2.0 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true -tracks/0/path = NodePath("ColorRect:modulate") +tracks/0/path = NodePath("BigFading:modulate") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { @@ -39,7 +39,7 @@ length = 2.0 tracks/0/type = "value" tracks/0/imported = false tracks/0/enabled = true -tracks/0/path = NodePath("ColorRect:modulate") +tracks/0/path = NodePath("BigFading:modulate") tracks/0/interp = 1 tracks/0/loop_wrap = true tracks/0/keys = { @@ -56,11 +56,63 @@ _data = { "fade_to_normal": SubResource("Animation_in743") } +[sub_resource type="Animation" id="Animation_3ahpb"] +resource_name = "fade_to_black" +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath(".:modulate") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0, 1), +"transitions": PackedFloat32Array(1, 1), +"update": 0, +"values": [Color(0, 0, 0, 0), Color(0, 0, 0, 1)] +} + +[sub_resource type="Animation" id="Animation_igu58"] +length = 0.001 +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath(".:modulate") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0), +"transitions": PackedFloat32Array(1), +"update": 0, +"values": [Color(1, 1, 1, 1)] +} + +[sub_resource type="Animation" id="Animation_do6sc"] +resource_name = "fade_to_normal" +tracks/0/type = "value" +tracks/0/imported = false +tracks/0/enabled = true +tracks/0/path = NodePath(".:modulate") +tracks/0/interp = 1 +tracks/0/loop_wrap = true +tracks/0/keys = { +"times": PackedFloat32Array(0, 1), +"transitions": PackedFloat32Array(1, 1), +"update": 0, +"values": [Color(0, 0, 0, 1), Color(0, 0, 0, 0)] +} + +[sub_resource type="AnimationLibrary" id="AnimationLibrary_h2xbl"] +_data = { +"RESET": SubResource("Animation_igu58"), +"fade_to_black": SubResource("Animation_3ahpb"), +"fade_to_normal": SubResource("Animation_do6sc") +} + [node name="transition_screen" type="CanvasLayer"] layer = 10 script = ExtResource("1_hbjtk") -[node name="ColorRect" type="ColorRect" parent="."] +[node name="BigFading" type="ColorRect" parent="."] modulate = Color(0, 0, 0, 0) anchors_preset = 15 anchor_right = 1.0 @@ -69,7 +121,19 @@ grow_horizontal = 2 grow_vertical = 2 color = Color(0, 0, 0, 1) -[node name="AnimationPlayer" type="AnimationPlayer" parent="."] +[node name="BigFadingAnimation" type="AnimationPlayer" parent="BigFading"] +root_node = NodePath("../..") libraries = { "": SubResource("AnimationLibrary_5yx4m") } + +[node name="SmallFading" type="ColorRect" parent="."] +offset_top = 244.0 +offset_right = 1923.0 +offset_bottom = 899.0 +color = Color(0, 0, 0, 1) + +[node name="SmallFadingAnimation" type="AnimationPlayer" parent="SmallFading"] +libraries = { +"": SubResource("AnimationLibrary_h2xbl") +}