Commit of existing data.

This commit is contained in:
2025-06-22 23:22:32 -06:00
commit 1bbd8c812f
208 changed files with 6327 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
[gd_scene format=3 uid="uid://cte8keoftyqt3"]
[node name="ContinueGameMenu" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
+31
View File
@@ -0,0 +1,31 @@
extends TextureRect
func _ready() -> void:
$VBoxContainer/Btn_NewGame.grab_focus()
global.set_music(load("res://music/area_0.ogg"))
await global.fade_in()
func _process(_delta: float) -> void:
if Input.is_action_just_pressed("ui_cancel"):
$VBoxContainer/Btn_Quit.emit_signal("pressed")
func _on_btn_new_game_pressed():
var scene = load("res://menus/new_game_menu.tscn")
global.goto_scene(scene)
func _on_btn_continue_pressed():
var scene = load("res://menus/continue_game_menu.tscn")
global.goto_scene(scene)
func _on_btn_options_pressed():
var scene = load("res://menus/options_menu.tscn")
global.goto_scene(scene)
func _on_btn_quit_pressed():
await global.fade_out()
get_tree().quit()
+1
View File
@@ -0,0 +1 @@
uid://3bfn7lgm1s3h
+54
View File
@@ -0,0 +1,54 @@
[gd_scene load_steps=7 format=3 uid="uid://cq6uwsye435dr"]
[ext_resource type="Theme" uid="uid://d01fm68pwgnvc" path="res://ui/default_theme.tres" id="1_6mtu4"]
[ext_resource type="Texture2D" uid="uid://w7m2ybuqy1bw" path="res://ui/background.png" id="2_bhgnh"]
[ext_resource type="Script" uid="uid://3bfn7lgm1s3h" path="res://menus/main_menu.gd" id="3_3kxo1"]
[ext_resource type="PackedScene" uid="uid://bqlbo0yh111fw" path="res://objects/ui/sound_button.tscn" id="5_511f8"]
[ext_resource type="AudioStream" uid="uid://3p3r68ntjf4u" path="res://sounds/ui/menu_click.wav" id="5_h8vgu"]
[ext_resource type="AudioStream" uid="uid://cs58kp03yj1kf" path="res://sounds/ui/menu_confirm.wav" id="6_su02e"]
[node name="Main_Menu" type="TextureRect"]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme = ExtResource("1_6mtu4")
texture = ExtResource("2_bhgnh")
script = ExtResource("3_3kxo1")
[node name="VBoxContainer" type="VBoxContainer" parent="."]
layout_mode = 0
offset_top = 144.0
offset_right = 320.0
offset_bottom = 240.0
theme_override_constants/separation = 2
[node name="Btn_NewGame" parent="VBoxContainer" instance=ExtResource("5_511f8")]
layout_mode = 2
text = "New Game"
FocusSound = ExtResource("5_h8vgu")
PressSound = ExtResource("6_su02e")
[node name="Btn_Continue" parent="VBoxContainer" instance=ExtResource("5_511f8")]
layout_mode = 2
text = "Continue"
FocusSound = ExtResource("5_h8vgu")
PressSound = ExtResource("6_su02e")
[node name="Btn_Options" parent="VBoxContainer" instance=ExtResource("5_511f8")]
layout_mode = 2
text = "Options"
FocusSound = ExtResource("5_h8vgu")
PressSound = ExtResource("6_su02e")
[node name="Btn_Quit" parent="VBoxContainer" instance=ExtResource("5_511f8")]
layout_mode = 2
text = "Quit"
FocusSound = ExtResource("5_h8vgu")
PressSound = ExtResource("6_su02e")
[connection signal="pressed" from="VBoxContainer/Btn_NewGame" to="." method="_on_btn_new_game_pressed"]
[connection signal="pressed" from="VBoxContainer/Btn_Continue" to="." method="_on_btn_continue_pressed"]
[connection signal="pressed" from="VBoxContainer/Btn_Options" to="." method="_on_btn_options_pressed"]
[connection signal="pressed" from="VBoxContainer/Btn_Quit" to="." method="_on_btn_quit_pressed"]
+127
View File
@@ -0,0 +1,127 @@
extends Control
const PROTAG_IMAGE = preload("res://ui/protag_image.tres")
const GRAYSCALE = preload("res://shaders/grayscale.material")
var slot: int
var save1: Save
var save2: Save
var save3: Save
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
save1 = Save.load(1)
save2 = Save.load(2)
save3 = Save.load(3)
set_slot(1, save1)
set_slot(2, save2)
set_slot(3, save3)
$HBoxContainer/Btn_Slot1.grab_focus()
await global.fade_in()
func _process(_delta: float) -> void:
if Input.is_action_just_pressed("ui_cancel"):
if $DifficultyDialog.visible:
$DifficultyDialog/Panel/VBoxContainer/Btn_DifficultyBack.emit_signal("pressed")
elif $OverwriteDialog.visible:
$OverwriteDialog.get_cancel_button().emit_signal("pressed")
else:
_on_btn_back_pressed()
func _on_btn_back_pressed() -> void:
var scene = load("res://menus/main_menu.tscn")
global.goto_scene(scene)
func _on_btn_slot_1_pressed() -> void:
global.save = Save.new(1)
$Overlay.show()
if save1:
$OverwriteDialog.show()
else:
$DifficultyDialog.show()
$DifficultyDialog/Panel/VBoxContainer/Btn_DifficultyEasy.grab_focus()
func _on_btn_slot_2_pressed() -> void:
global.save = Save.new(2)
$Overlay.show()
if save2:
$OverwriteDialog.show()
else:
$DifficultyDialog.show()
$DifficultyDialog/Panel/VBoxContainer/Btn_DifficultyEasy.grab_focus()
func _on_btn_slot_3_pressed() -> void:
global.save = Save.new(3)
$Overlay.show()
if save3:
$OverwriteDialog.show()
else:
$DifficultyDialog.show()
$DifficultyDialog/Panel/VBoxContainer/Btn_DifficultyEasy.grab_focus()
func _on_overwrite_dialog_confirmed() -> void:
$DifficultyDialog.show()
$DifficultyDialog/Panel/VBoxContainer/Btn_DifficultyEasy.grab_focus()
func _on_overwrite_dialog_canceled() -> void:
global.save = null
$Overlay.hide()
func _on_btn_difficulty_easy_pressed() -> void:
global.save.difficulty = Save.Difficulty.EASY
global.save.save_to_disk()
var scene = load("res://rooms/%s.tscn" % global.save.room)
$DifficultyDialog.hide()
global.goto_scene(scene)
func _on_btn_difficulty_normal_pressed() -> void:
global.save.difficulty = Save.Difficulty.NORMAL
global.save.save_to_disk()
var scene = load("res://rooms/%s.tscn" % global.save.room)
$DifficultyDialog.hide()
global.goto_scene(scene)
func _on_btn_difficulty_hard_pressed() -> void:
global.save.difficulty = Save.Difficulty.HARD
global.save.save_to_disk()
var scene = load("res://rooms/%s.tscn" % global.save.room)
$DifficultyDialog.hide()
global.goto_scene(scene)
func _on_btn_difficulty_back_pressed() -> void:
global.save = null
$DifficultyDialog.hide()
$Overlay.hide()
func set_slot(save_slot: int, save: Save) -> void:
var basePath = "HBoxContainer/Btn_Slot%s" % save_slot
if save:
var ts = Timespan.new(save.playtime)
get_node(basePath + "/VBoxContainer/Lab_Playtime").text = "%dH %dM %dS" % [floori(ts.TotalHours()), ts.Minutes(), ts.Seconds()]
get_node(basePath + "/VBoxContainer/SlotImage").texture = PROTAG_IMAGE
get_node(basePath + "/VBoxContainer/Box_Abilities").show()
if !save.fire: get_node(basePath + "/VBoxContainer/Box_Abilities/Tex_Fire").material = GRAYSCALE
if !save.ice: get_node(basePath + "/VBoxContainer/Box_Abilities/Tex_Ice").material = GRAYSCALE
if !save.laser: get_node(basePath + "/VBoxContainer/Box_Abilities/Tex_Laser").material = GRAYSCALE
get_node(basePath + "/VBoxContainer/Grid_Stats").show()
get_node(basePath + "/VBoxContainer/Grid_Stats/Lab_AtkValue").text = "%s" % save.atk
get_node(basePath + "/VBoxContainer/Grid_Stats/Lab_DefValue").text = "%s" % save.def
get_node(basePath + "/VBoxContainer/Grid_Stats/Lab_ConValue").text = "%s" % save.con
get_node(basePath + "/VBoxContainer/Grid_Stats/Lab_ChgValue").text = "%s" % save.chg
+1
View File
@@ -0,0 +1 @@
uid://nbqru7pv7cxc
+510
View File
@@ -0,0 +1,510 @@
[gd_scene load_steps=13 format=3 uid="uid://cddg48xuodm4s"]
[ext_resource type="Theme" uid="uid://d01fm68pwgnvc" path="res://ui/default_theme.tres" id="1_g6v0u"]
[ext_resource type="Script" uid="uid://nbqru7pv7cxc" path="res://menus/new_game_menu.gd" id="2_ysy8u"]
[ext_resource type="PackedScene" uid="uid://bqlbo0yh111fw" path="res://objects/ui/sound_button.tscn" id="3_4w7h3"]
[ext_resource type="Texture2D" uid="uid://beomt8bs2wra2" path="res://ui/empty_ico.png" id="3_cjw05"]
[ext_resource type="AudioStream" uid="uid://3p3r68ntjf4u" path="res://sounds/ui/menu_click.wav" id="4_cgk43"]
[ext_resource type="Texture2D" uid="uid://kwsk0b5ff8k1" path="res://ui/fire_ico.png" id="4_eltv3"]
[ext_resource type="Texture2D" uid="uid://dh8ike5vblov0" path="res://ui/ice_ico.png" id="5_5ypbk"]
[ext_resource type="AudioStream" uid="uid://cs58kp03yj1kf" path="res://sounds/ui/menu_confirm.wav" id="5_sr5rb"]
[ext_resource type="Texture2D" uid="uid://v0wt3up1lrkm" path="res://ui/laser_ico.png" id="6_vchad"]
[ext_resource type="Texture2D" uid="uid://pk0b46lb6tmo" path="res://ui/cryo_image.tres" id="8_d3r81"]
[ext_resource type="Script" uid="uid://h6prwf5a5wwr" path="res://objects/ui/sound_button.gd" id="11_qvsy4"]
[sub_resource type="StyleBoxLine" id="StyleBoxLine_3e3iv"]
color = Color(1, 1, 1, 1)
[node name="NewGameMenu" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme = ExtResource("1_g6v0u")
script = ExtResource("2_ysy8u")
[node name="Label" type="Label" parent="."]
layout_mode = 1
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -39.0
offset_top = 18.0
offset_right = 46.0
offset_bottom = 41.0
grow_horizontal = 2
text = "New Game"
[node name="HBoxContainer" type="HBoxContainer" parent="."]
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -150.0
offset_top = -61.0
offset_right = 150.0
offset_bottom = 61.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/separation = 7
alignment = 1
[node name="Btn_Slot1" parent="HBoxContainer" instance=ExtResource("3_4w7h3")]
layout_mode = 2
size_flags_horizontal = 3
focus_neighbor_left = NodePath("../Btn_Slot3")
focus_neighbor_right = NodePath("../Btn_Slot2")
theme_type_variation = &"SaveSlotButton"
FocusSound = ExtResource("4_cgk43")
PressSound = ExtResource("5_sr5rb")
[node name="VBoxContainer" type="VBoxContainer" parent="HBoxContainer/Btn_Slot1"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/separation = 1
[node name="SlotLabel" type="Label" parent="HBoxContainer/Btn_Slot1/VBoxContainer"]
layout_mode = 2
text = "Slot 1"
horizontal_alignment = 1
[node name="Lab_Playtime" type="Label" parent="HBoxContainer/Btn_Slot1/VBoxContainer"]
layout_mode = 2
theme_type_variation = &"SaveSlotBodyLabel"
text = "Empty"
horizontal_alignment = 1
[node name="SlotImage" type="TextureRect" parent="HBoxContainer/Btn_Slot1/VBoxContainer"]
custom_minimum_size = Vector2(42, 42)
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 4
texture = ExtResource("8_d3r81")
stretch_mode = 3
[node name="Box_Abilities" type="HBoxContainer" parent="HBoxContainer/Btn_Slot1/VBoxContainer"]
visible = false
layout_mode = 2
theme_override_constants/separation = 1
alignment = 1
[node name="Tex_Blast" type="TextureRect" parent="HBoxContainer/Btn_Slot1/VBoxContainer/Box_Abilities"]
layout_mode = 2
size_flags_horizontal = 0
size_flags_vertical = 4
texture = ExtResource("3_cjw05")
[node name="Tex_Fire" type="TextureRect" parent="HBoxContainer/Btn_Slot1/VBoxContainer/Box_Abilities"]
layout_mode = 2
size_flags_horizontal = 0
size_flags_vertical = 4
texture = ExtResource("4_eltv3")
[node name="Tex_Ice" type="TextureRect" parent="HBoxContainer/Btn_Slot1/VBoxContainer/Box_Abilities"]
layout_mode = 2
size_flags_horizontal = 0
size_flags_vertical = 4
texture = ExtResource("5_5ypbk")
[node name="Tex_Laser" type="TextureRect" parent="HBoxContainer/Btn_Slot1/VBoxContainer/Box_Abilities"]
layout_mode = 2
size_flags_horizontal = 0
size_flags_vertical = 4
texture = ExtResource("6_vchad")
[node name="Grid_Stats" type="GridContainer" parent="HBoxContainer/Btn_Slot1/VBoxContainer"]
visible = false
layout_mode = 2
columns = 4
[node name="Lab_Atk" type="Label" parent="HBoxContainer/Btn_Slot1/VBoxContainer/Grid_Stats"]
layout_mode = 2
size_flags_horizontal = 3
theme_type_variation = &"SaveSlotBodyLabel"
text = "Atk"
[node name="Lab_AtkValue" type="Label" parent="HBoxContainer/Btn_Slot1/VBoxContainer/Grid_Stats"]
layout_mode = 2
size_flags_horizontal = 3
theme_type_variation = &"SaveSlotBodyLabel"
text = "1"
[node name="Lab_Def" type="Label" parent="HBoxContainer/Btn_Slot1/VBoxContainer/Grid_Stats"]
layout_mode = 2
size_flags_horizontal = 3
theme_type_variation = &"SaveSlotBodyLabel"
text = "Def"
[node name="Lab_DefValue" type="Label" parent="HBoxContainer/Btn_Slot1/VBoxContainer/Grid_Stats"]
layout_mode = 2
size_flags_horizontal = 3
theme_type_variation = &"SaveSlotBodyLabel"
text = "1"
[node name="Lab_Con" type="Label" parent="HBoxContainer/Btn_Slot1/VBoxContainer/Grid_Stats"]
layout_mode = 2
size_flags_horizontal = 3
theme_type_variation = &"SaveSlotBodyLabel"
text = "Con"
[node name="Lab_ConValue" type="Label" parent="HBoxContainer/Btn_Slot1/VBoxContainer/Grid_Stats"]
layout_mode = 2
size_flags_horizontal = 3
theme_type_variation = &"SaveSlotBodyLabel"
text = "1"
[node name="Lab_Chg" type="Label" parent="HBoxContainer/Btn_Slot1/VBoxContainer/Grid_Stats"]
layout_mode = 2
size_flags_horizontal = 3
theme_type_variation = &"SaveSlotBodyLabel"
text = "Chg"
[node name="Lab_ChgValue" type="Label" parent="HBoxContainer/Btn_Slot1/VBoxContainer/Grid_Stats"]
layout_mode = 2
size_flags_horizontal = 3
theme_type_variation = &"SaveSlotBodyLabel"
text = "1"
[node name="Btn_Slot2" parent="HBoxContainer" instance=ExtResource("3_4w7h3")]
layout_mode = 2
size_flags_horizontal = 3
focus_neighbor_left = NodePath("../Btn_Slot1")
focus_neighbor_right = NodePath("../Btn_Slot3")
theme_type_variation = &"SaveSlotButton"
FocusSound = ExtResource("4_cgk43")
PressSound = ExtResource("5_sr5rb")
[node name="VBoxContainer" type="VBoxContainer" parent="HBoxContainer/Btn_Slot2"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/separation = 1
[node name="SlotLabel" type="Label" parent="HBoxContainer/Btn_Slot2/VBoxContainer"]
layout_mode = 2
text = "Slot 2"
horizontal_alignment = 1
[node name="Lab_Playtime" type="Label" parent="HBoxContainer/Btn_Slot2/VBoxContainer"]
layout_mode = 2
theme_type_variation = &"SaveSlotBodyLabel"
text = "Empty"
horizontal_alignment = 1
[node name="SlotImage" type="TextureRect" parent="HBoxContainer/Btn_Slot2/VBoxContainer"]
custom_minimum_size = Vector2(42, 42)
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 4
texture = ExtResource("8_d3r81")
stretch_mode = 3
[node name="Box_Abilities" type="HBoxContainer" parent="HBoxContainer/Btn_Slot2/VBoxContainer"]
visible = false
layout_mode = 2
theme_override_constants/separation = 1
alignment = 1
[node name="Tex_Blast" type="TextureRect" parent="HBoxContainer/Btn_Slot2/VBoxContainer/Box_Abilities"]
layout_mode = 2
size_flags_horizontal = 0
size_flags_vertical = 4
texture = ExtResource("3_cjw05")
[node name="Tex_Fire" type="TextureRect" parent="HBoxContainer/Btn_Slot2/VBoxContainer/Box_Abilities"]
layout_mode = 2
size_flags_horizontal = 0
size_flags_vertical = 4
texture = ExtResource("4_eltv3")
[node name="Tex_Ice" type="TextureRect" parent="HBoxContainer/Btn_Slot2/VBoxContainer/Box_Abilities"]
layout_mode = 2
size_flags_horizontal = 0
size_flags_vertical = 4
texture = ExtResource("5_5ypbk")
[node name="Tex_Laser" type="TextureRect" parent="HBoxContainer/Btn_Slot2/VBoxContainer/Box_Abilities"]
layout_mode = 2
size_flags_horizontal = 0
size_flags_vertical = 4
texture = ExtResource("6_vchad")
[node name="Grid_Stats" type="GridContainer" parent="HBoxContainer/Btn_Slot2/VBoxContainer"]
visible = false
layout_mode = 2
columns = 4
[node name="Lab_Atk" type="Label" parent="HBoxContainer/Btn_Slot2/VBoxContainer/Grid_Stats"]
layout_mode = 2
size_flags_horizontal = 3
theme_type_variation = &"SaveSlotBodyLabel"
text = "Atk"
[node name="Lab_AtkValue" type="Label" parent="HBoxContainer/Btn_Slot2/VBoxContainer/Grid_Stats"]
layout_mode = 2
size_flags_horizontal = 3
theme_type_variation = &"SaveSlotBodyLabel"
text = "1"
[node name="Lab_Def" type="Label" parent="HBoxContainer/Btn_Slot2/VBoxContainer/Grid_Stats"]
layout_mode = 2
size_flags_horizontal = 3
theme_type_variation = &"SaveSlotBodyLabel"
text = "Def"
[node name="Lab_DefValue" type="Label" parent="HBoxContainer/Btn_Slot2/VBoxContainer/Grid_Stats"]
layout_mode = 2
size_flags_horizontal = 3
theme_type_variation = &"SaveSlotBodyLabel"
text = "1"
[node name="Lab_Con" type="Label" parent="HBoxContainer/Btn_Slot2/VBoxContainer/Grid_Stats"]
layout_mode = 2
size_flags_horizontal = 3
theme_type_variation = &"SaveSlotBodyLabel"
text = "Con"
[node name="Lab_ConValue" type="Label" parent="HBoxContainer/Btn_Slot2/VBoxContainer/Grid_Stats"]
layout_mode = 2
size_flags_horizontal = 3
theme_type_variation = &"SaveSlotBodyLabel"
text = "1"
[node name="Lab_Chg" type="Label" parent="HBoxContainer/Btn_Slot2/VBoxContainer/Grid_Stats"]
layout_mode = 2
size_flags_horizontal = 3
theme_type_variation = &"SaveSlotBodyLabel"
text = "Chg"
[node name="Lab_ChgValue" type="Label" parent="HBoxContainer/Btn_Slot2/VBoxContainer/Grid_Stats"]
layout_mode = 2
size_flags_horizontal = 3
theme_type_variation = &"SaveSlotBodyLabel"
text = "1"
[node name="Btn_Slot3" parent="HBoxContainer" instance=ExtResource("3_4w7h3")]
layout_mode = 2
size_flags_horizontal = 3
focus_neighbor_left = NodePath("../Btn_Slot2")
focus_neighbor_right = NodePath("../Btn_Slot1")
theme_type_variation = &"SaveSlotButton"
FocusSound = ExtResource("4_cgk43")
PressSound = ExtResource("5_sr5rb")
[node name="VBoxContainer" type="VBoxContainer" parent="HBoxContainer/Btn_Slot3"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_constants/separation = 1
[node name="SlotLabel" type="Label" parent="HBoxContainer/Btn_Slot3/VBoxContainer"]
layout_mode = 2
text = "Slot 3"
horizontal_alignment = 1
[node name="Lab_Playtime" type="Label" parent="HBoxContainer/Btn_Slot3/VBoxContainer"]
layout_mode = 2
theme_type_variation = &"SaveSlotBodyLabel"
text = "Empty"
horizontal_alignment = 1
[node name="SlotImage" type="TextureRect" parent="HBoxContainer/Btn_Slot3/VBoxContainer"]
custom_minimum_size = Vector2(42, 42)
layout_mode = 2
size_flags_horizontal = 4
size_flags_vertical = 4
texture = ExtResource("8_d3r81")
stretch_mode = 3
[node name="Box_Abilities" type="HBoxContainer" parent="HBoxContainer/Btn_Slot3/VBoxContainer"]
visible = false
layout_mode = 2
theme_override_constants/separation = 1
alignment = 1
[node name="Tex_Blast" type="TextureRect" parent="HBoxContainer/Btn_Slot3/VBoxContainer/Box_Abilities"]
layout_mode = 2
size_flags_horizontal = 0
size_flags_vertical = 4
texture = ExtResource("3_cjw05")
[node name="Tex_Fire" type="TextureRect" parent="HBoxContainer/Btn_Slot3/VBoxContainer/Box_Abilities"]
layout_mode = 2
size_flags_horizontal = 0
size_flags_vertical = 4
texture = ExtResource("4_eltv3")
[node name="Tex_Ice" type="TextureRect" parent="HBoxContainer/Btn_Slot3/VBoxContainer/Box_Abilities"]
layout_mode = 2
size_flags_horizontal = 0
size_flags_vertical = 4
texture = ExtResource("5_5ypbk")
[node name="Tex_Laser" type="TextureRect" parent="HBoxContainer/Btn_Slot3/VBoxContainer/Box_Abilities"]
layout_mode = 2
size_flags_horizontal = 0
size_flags_vertical = 4
texture = ExtResource("6_vchad")
[node name="Grid_Stats" type="GridContainer" parent="HBoxContainer/Btn_Slot3/VBoxContainer"]
visible = false
layout_mode = 2
columns = 4
[node name="Lab_Atk" type="Label" parent="HBoxContainer/Btn_Slot3/VBoxContainer/Grid_Stats"]
layout_mode = 2
size_flags_horizontal = 3
theme_type_variation = &"SaveSlotBodyLabel"
text = "Atk"
[node name="Lab_AtkValue" type="Label" parent="HBoxContainer/Btn_Slot3/VBoxContainer/Grid_Stats"]
layout_mode = 2
size_flags_horizontal = 3
theme_type_variation = &"SaveSlotBodyLabel"
text = "1"
[node name="Lab_Def" type="Label" parent="HBoxContainer/Btn_Slot3/VBoxContainer/Grid_Stats"]
layout_mode = 2
size_flags_horizontal = 3
theme_type_variation = &"SaveSlotBodyLabel"
text = "Def"
[node name="Lab_DefValue" type="Label" parent="HBoxContainer/Btn_Slot3/VBoxContainer/Grid_Stats"]
layout_mode = 2
size_flags_horizontal = 3
theme_type_variation = &"SaveSlotBodyLabel"
text = "1"
[node name="Lab_Con" type="Label" parent="HBoxContainer/Btn_Slot3/VBoxContainer/Grid_Stats"]
layout_mode = 2
size_flags_horizontal = 3
theme_type_variation = &"SaveSlotBodyLabel"
text = "Con"
[node name="Lab_ConValue" type="Label" parent="HBoxContainer/Btn_Slot3/VBoxContainer/Grid_Stats"]
layout_mode = 2
size_flags_horizontal = 3
theme_type_variation = &"SaveSlotBodyLabel"
text = "1"
[node name="Lab_Chg" type="Label" parent="HBoxContainer/Btn_Slot3/VBoxContainer/Grid_Stats"]
layout_mode = 2
size_flags_horizontal = 3
theme_type_variation = &"SaveSlotBodyLabel"
text = "Chg"
[node name="Lab_ChgValue" type="Label" parent="HBoxContainer/Btn_Slot3/VBoxContainer/Grid_Stats"]
layout_mode = 2
size_flags_horizontal = 3
theme_type_variation = &"SaveSlotBodyLabel"
text = "1"
[node name="Btn_Back" parent="." instance=ExtResource("3_4w7h3")]
layout_mode = 1
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -48.0
offset_top = -28.0
offset_right = -8.0
offset_bottom = -8.0
grow_horizontal = 0
grow_vertical = 0
text = "Back"
FocusSound = ExtResource("4_cgk43")
PressSound = ExtResource("5_sr5rb")
[node name="Overlay" type="ColorRect" parent="."]
visible = false
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0, 0, 0, 0.501961)
[node name="OverwriteDialog" type="ConfirmationDialog" parent="."]
initial_position = 2
size = Vector2i(200, 97)
unresizable = true
ok_button_text = "Overwrite"
dialog_text = "Are you sure you want to overwrite this save?"
dialog_autowrap = true
[node name="DifficultyDialog" type="Window" parent="."]
title = "Select Difficulty"
initial_position = 2
size = Vector2i(165, 92)
visible = false
[node name="Panel" type="Panel" parent="DifficultyDialog"]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_styles/panel = SubResource("StyleBoxLine_3e3iv")
[node name="VBoxContainer" type="VBoxContainer" parent="DifficultyDialog/Panel"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="Btn_DifficultyEasy" type="Button" parent="DifficultyDialog/Panel/VBoxContainer"]
layout_mode = 2
text = "Easy"
script = ExtResource("11_qvsy4")
[node name="Btn_DifficultyNormal" type="Button" parent="DifficultyDialog/Panel/VBoxContainer"]
layout_mode = 2
text = "Normal"
script = ExtResource("11_qvsy4")
[node name="Btn_DifficultyHard" type="Button" parent="DifficultyDialog/Panel/VBoxContainer"]
layout_mode = 2
text = "Hard"
script = ExtResource("11_qvsy4")
[node name="Btn_DifficultyBack" type="Button" parent="DifficultyDialog/Panel/VBoxContainer"]
layout_mode = 2
text = "Back"
script = ExtResource("11_qvsy4")
[connection signal="pressed" from="HBoxContainer/Btn_Slot1" to="." method="_on_btn_slot_1_pressed"]
[connection signal="pressed" from="HBoxContainer/Btn_Slot2" to="." method="_on_btn_slot_2_pressed"]
[connection signal="pressed" from="HBoxContainer/Btn_Slot3" to="." method="_on_btn_slot_3_pressed"]
[connection signal="pressed" from="Btn_Back" to="." method="_on_btn_back_pressed"]
[connection signal="canceled" from="OverwriteDialog" to="." method="_on_overwrite_dialog_canceled"]
[connection signal="confirmed" from="OverwriteDialog" to="." method="_on_overwrite_dialog_confirmed"]
[connection signal="focus_entered" from="DifficultyDialog/Panel/VBoxContainer/Btn_DifficultyEasy" to="DifficultyDialog/Panel/VBoxContainer/Btn_DifficultyEasy" method="_on_focus_entered"]
[connection signal="pressed" from="DifficultyDialog/Panel/VBoxContainer/Btn_DifficultyEasy" to="." method="_on_btn_difficulty_easy_pressed"]
[connection signal="pressed" from="DifficultyDialog/Panel/VBoxContainer/Btn_DifficultyEasy" to="DifficultyDialog/Panel/VBoxContainer/Btn_DifficultyEasy" method="_on_pressed"]
[connection signal="focus_entered" from="DifficultyDialog/Panel/VBoxContainer/Btn_DifficultyNormal" to="DifficultyDialog/Panel/VBoxContainer/Btn_DifficultyNormal" method="_on_focus_entered"]
[connection signal="pressed" from="DifficultyDialog/Panel/VBoxContainer/Btn_DifficultyNormal" to="." method="_on_btn_difficulty_normal_pressed"]
[connection signal="pressed" from="DifficultyDialog/Panel/VBoxContainer/Btn_DifficultyNormal" to="DifficultyDialog/Panel/VBoxContainer/Btn_DifficultyNormal" method="_on_pressed"]
[connection signal="focus_entered" from="DifficultyDialog/Panel/VBoxContainer/Btn_DifficultyHard" to="DifficultyDialog/Panel/VBoxContainer/Btn_DifficultyHard" method="_on_focus_entered"]
[connection signal="pressed" from="DifficultyDialog/Panel/VBoxContainer/Btn_DifficultyHard" to="." method="_on_btn_difficulty_hard_pressed"]
[connection signal="pressed" from="DifficultyDialog/Panel/VBoxContainer/Btn_DifficultyHard" to="DifficultyDialog/Panel/VBoxContainer/Btn_DifficultyHard" method="_on_pressed"]
[connection signal="focus_entered" from="DifficultyDialog/Panel/VBoxContainer/Btn_DifficultyBack" to="DifficultyDialog/Panel/VBoxContainer/Btn_DifficultyBack" method="_on_focus_entered"]
[connection signal="pressed" from="DifficultyDialog/Panel/VBoxContainer/Btn_DifficultyBack" to="." method="_on_btn_difficulty_back_pressed"]
[connection signal="pressed" from="DifficultyDialog/Panel/VBoxContainer/Btn_DifficultyBack" to="DifficultyDialog/Panel/VBoxContainer/Btn_DifficultyBack" method="_on_pressed"]
+8
View File
@@ -0,0 +1,8 @@
extends Control
var timestart: int
# Called when the node enters the scene tree for the first time.
func _ready():
timestart = Time.get_ticks_msec()
await global.fade_in()
+1
View File
@@ -0,0 +1 @@
uid://b4i745jtfepbh
+101
View File
@@ -0,0 +1,101 @@
[gd_scene load_steps=4 format=3 uid="uid://cvdf5q8evdylc"]
[ext_resource type="Theme" uid="uid://d01fm68pwgnvc" path="res://ui/default_theme.tres" id="1_5uhqc"]
[ext_resource type="Script" uid="uid://b4i745jtfepbh" path="res://menus/options_menu.gd" id="2_aogii"]
[sub_resource type="GDScript" id="GDScript_xwmny"]
script/source = "extends Button
func _on_pressed():
var scene = load(\"res://scenes/main_menu.tscn\")
global.goto_scene(scene)
"
[node name="OptionsMenu" type="Control"]
layout_mode = 3
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme = ExtResource("1_5uhqc")
script = ExtResource("2_aogii")
[node name="Lab_Options" type="Label" parent="."]
layout_mode = 1
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -30.0
offset_top = 10.0
offset_right = 32.0
offset_bottom = 30.0
grow_horizontal = 2
text = "Options"
horizontal_alignment = 1
[node name="Btn_Confirm" type="Button" parent="."]
layout_mode = 1
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -87.0
offset_top = -28.0
offset_right = -8.0
offset_bottom = -8.0
grow_horizontal = 0
grow_vertical = 0
text = "Confirm"
[node name="Btn_Cancel" type="Button" parent="."]
layout_mode = 1
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -158.0
offset_top = -28.0
offset_right = -87.0
offset_bottom = -8.0
grow_horizontal = 0
grow_vertical = 0
text = "Cancel"
script = SubResource("GDScript_xwmny")
[node name="GridContainer" type="GridContainer" parent="."]
layout_mode = 0
offset_left = 10.0
offset_top = 40.0
offset_right = 310.0
offset_bottom = 212.0
columns = 2
[node name="Lab_MusicVolume" type="Label" parent="GridContainer"]
layout_mode = 2
text = "Music Volume"
[node name="Slider_MusicVolume" type="HSlider" parent="GridContainer"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 1
max_value = 1.0
step = 0.1
value = 0.5
[node name="Lab_SFXVolume" type="Label" parent="GridContainer"]
layout_mode = 2
text = "SFX Volume"
[node name="Slider_SFXVolume" type="HSlider" parent="GridContainer"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_vertical = 1
max_value = 1.0
step = 0.1
value = 0.5
[connection signal="pressed" from="Btn_Cancel" to="Btn_Cancel" method="_on_pressed"]
+17
View File
@@ -0,0 +1,17 @@
extends TextureRect
var timer: SceneTreeTimer
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
global.fade_in()
timer = get_tree().create_timer(5)
await timer.timeout
var scene = load("res://menus/main_menu.tscn")
global.goto_scene(scene)
# Called every frame. 'delta' is the elapsed time since the previous frame.
func _process(_delta: float) -> void:
if Input.is_action_just_pressed("ui_accept") || Input.is_mouse_button_pressed(MOUSE_BUTTON_LEFT):
timer.emit_signal("timeout")
+1
View File
@@ -0,0 +1 @@
uid://dujq1ojabysqj
+13
View File
@@ -0,0 +1,13 @@
[gd_scene load_steps=3 format=3 uid="uid://deismap4eyt3"]
[ext_resource type="Texture2D" uid="uid://dl708xax0net7" path="res://ui/splash.png" id="1_486j6"]
[ext_resource type="Script" uid="uid://dujq1ojabysqj" path="res://menus/splash_screen.gd" id="2_mehmw"]
[node name="SplashScreen" type="TextureRect"]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
texture = ExtResource("1_486j6")
script = ExtResource("2_mehmw")