diff options
Diffstat (limited to 'scenes')
-rw-r--r-- | scenes/game_over.tscn | 41 | ||||
-rw-r--r-- | scenes/title.gd | 5 | ||||
-rw-r--r-- | scenes/title.gd.uid | 1 | ||||
-rw-r--r-- | scenes/title.tscn | 21 | ||||
-rw-r--r-- | scenes/ui.tscn | 2 | ||||
-rw-r--r-- | scenes/ui_option.tscn | 10 |
6 files changed, 62 insertions, 18 deletions
diff --git a/scenes/game_over.tscn b/scenes/game_over.tscn new file mode 100644 index 0000000..9ef136a --- /dev/null +++ b/scenes/game_over.tscn @@ -0,0 +1,41 @@ +[gd_scene load_steps=3 format=3 uid="uid://c2qy3yacnarar"] + +[ext_resource type="Script" uid="uid://d4ayvqargsfbd" path="res://scripts/game_over.gd" id="1_wqhvx"] +[ext_resource type="AudioStream" uid="uid://b6gqbdoic7lr4" path="res://assets/11 - Death's Respite.wav" id="2_wqhvx"] + +[node name="GameOver" 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_wqhvx") + +[node name="TextureRect" type="TextureRect" parent="."] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +expand_mode = 2 + +[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="."] +stream = ExtResource("2_wqhvx") +pitch_scale = 0.7 +autoplay = true + +[node name="Label" type="Label" parent="."] +layout_mode = 1 +anchors_preset = 12 +anchor_top = 1.0 +anchor_right = 1.0 +anchor_bottom = 1.0 +offset_top = -20.0 +grow_horizontal = 2 +grow_vertical = 0 +theme_override_colors/font_color = Color(1, 0.921569, 0.862745, 1) +theme_override_colors/font_shadow_color = Color(0, 0, 0, 1) +text = "space to go back..." +horizontal_alignment = 2 diff --git a/scenes/title.gd b/scenes/title.gd deleted file mode 100644 index 8242145..0000000 --- a/scenes/title.gd +++ /dev/null @@ -1,5 +0,0 @@ -extends Control - -func _input(event): - if event.is_action_pressed("ui_accept"): - get_tree().change_scene_to_file("res://scenes/game.tscn") diff --git a/scenes/title.gd.uid b/scenes/title.gd.uid deleted file mode 100644 index 163f43d..0000000 --- a/scenes/title.gd.uid +++ /dev/null @@ -1 +0,0 @@ -uid://cxmpltan4gkpt diff --git a/scenes/title.tscn b/scenes/title.tscn index 59450e7..1380aba 100644 --- a/scenes/title.tscn +++ b/scenes/title.tscn @@ -1,13 +1,13 @@ [gd_scene load_steps=7 format=3 uid="uid://cgoebhfu5udrc"] -[ext_resource type="Texture2D" uid="uid://cgmfpwb1eb88v" path="res://assets/title.png" id="1_4ignj"] -[ext_resource type="Script" uid="uid://cxmpltan4gkpt" path="res://scenes/title.gd" id="1_wosw1"] -[ext_resource type="AudioStream" uid="uid://coam5ivql7fwj" path="res://assets/13 - The Regret of Victory.wav" id="3_p6dhs"] -[ext_resource type="Script" uid="uid://1d5icis2ddhc" path="res://scripts/audio_looper.gd" id="4_pyl7j"] -[ext_resource type="Shader" uid="uid://d3ktu01mh01ao" path="res://resources/oscillating_text.gdshader" id="5_b3w7a"] +[ext_resource type="Script" uid="uid://cxmpltan4gkpt" path="res://scripts/title.gd" id="1_iryts"] +[ext_resource type="Texture2D" uid="uid://cgmfpwb1eb88v" path="res://assets/title.png" id="2_tkqx6"] +[ext_resource type="AudioStream" uid="uid://coam5ivql7fwj" path="res://assets/13 - The Regret of Victory.wav" id="3_k8ybh"] +[ext_resource type="Script" uid="uid://1d5icis2ddhc" path="res://scripts/audio_looper.gd" id="4_5kvca"] +[ext_resource type="Shader" uid="uid://d3ktu01mh01ao" path="res://resources/oscillating_text.gdshader" id="5_13ku0"] [sub_resource type="ShaderMaterial" id="ShaderMaterial_4rr2b"] -shader = ExtResource("5_b3w7a") +shader = ExtResource("5_13ku0") shader_parameter/height = 2.0 shader_parameter/freq = 3.0 shader_parameter/speed = 5.0 @@ -19,7 +19,7 @@ anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 -script = ExtResource("1_wosw1") +script = ExtResource("1_iryts") [node name="TextureRect" type="TextureRect" parent="."] layout_mode = 1 @@ -28,13 +28,13 @@ anchor_right = 1.0 anchor_bottom = 1.0 grow_horizontal = 2 grow_vertical = 2 -texture = ExtResource("1_4ignj") +texture = ExtResource("2_tkqx6") expand_mode = 2 [node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="."] -stream = ExtResource("3_p6dhs") +stream = ExtResource("3_k8ybh") autoplay = true -script = ExtResource("4_pyl7j") +script = ExtResource("4_5kvca") [node name="Label" type="Label" parent="."] material = SubResource("ShaderMaterial_4rr2b") @@ -47,6 +47,7 @@ offset_top = -28.0 offset_bottom = -28.0 grow_horizontal = 2 grow_vertical = 0 +theme_override_colors/font_color = Color(1, 0.921569, 0.862745, 1) theme_override_colors/font_shadow_color = Color(0, 0, 0, 1) text = "press 'space'" horizontal_alignment = 1 diff --git a/scenes/ui.tscn b/scenes/ui.tscn index 74e591e..7e7848e 100644 --- a/scenes/ui.tscn +++ b/scenes/ui.tscn @@ -3,7 +3,7 @@ [ext_resource type="Script" uid="uid://biw5cwtetstux" path="res://scripts/ui.gd" id="1_yev5y"] [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_nt14h"] -bg_color = Color(0, 0.0117647, 0.552941, 1) +bg_color = Color(0.000440926, 0.159154, 0.585059, 1) [node name="UI" type="PanelContainer"] anchors_preset = 10 diff --git a/scenes/ui_option.tscn b/scenes/ui_option.tscn index 21468c6..81e77d9 100644 --- a/scenes/ui_option.tscn +++ b/scenes/ui_option.tscn @@ -3,7 +3,7 @@ [ext_resource type="Script" uid="uid://do8a8uq1jvs7b" path="res://scripts/ui_panel.gd" id="1_c3u8h"] [sub_resource type="StyleBoxFlat" id="StyleBoxFlat_sv14y"] -bg_color = Color(0, 0.00526825, 0.379014, 1) +bg_color = Color(0.000427233, 0.12281, 0.492369, 1) [node name="UIOption" type="Panel"] custom_minimum_size = Vector2(16, 16) @@ -32,3 +32,11 @@ theme_override_font_sizes/font_size = 8 [node name="Label2" type="Label" parent="HBoxContainer/VBoxContainer"] layout_mode = 2 theme_override_font_sizes/font_size = 8 + +[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 |