New Icon; Touch Controls; Menu with Help; Added Music

This commit is contained in:
Exobyt 2024-09-15 02:57:08 +02:00
parent 9e3349eec3
commit e87f8c3756
71 changed files with 1084 additions and 278 deletions

View file

@ -69,7 +69,7 @@ shape = SubResource("CircleShape2D_f6w8f")
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
sprite_frames = SubResource("SpriteFrames_g6wmf")
frame_progress = 0.634411
frame_progress = 0.699741
[connection signal="area_entered" from="CollectArea" to="." method="_on_collect_area_area_entered"]
[connection signal="body_entered" from="CollectArea" to="." method="_on_collect_area_body_entered"]

View file

@ -2,7 +2,7 @@
[ext_resource type="PackedScene" uid="uid://b18cf4i8v6a1" path="res://scenes/game/entities/entity.tscn" id="1_bf5v6"]
[ext_resource type="Script" path="res://scenes/game/entities/Enemy/enemy.gd" id="2_4vapd"]
[ext_resource type="Texture2D" uid="uid://dh14dje1066et" path="res://icon.svg" id="3_jenk6"]
[ext_resource type="Texture2D" uid="uid://cjmden6nkwf1x" path="res://Assets/Enemy/Ghost.png" id="3_uks2p"]
[ext_resource type="PackedScene" uid="uid://cwirujaquehfc" path="res://scenes/game/Hitbox/damage_area.tscn" id="4_mr72k"]
[sub_resource type="CircleShape2D" id="CircleShape2D_xq7op"]
@ -11,15 +11,15 @@ radius = 8.0
[sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_c882v"]
light_mode = 2
[sub_resource type="AtlasTexture" id="AtlasTexture_rdbks"]
atlas = ExtResource("3_jenk6")
region = Rect2(0, 0, 128, 128)
[sub_resource type="AtlasTexture" id="AtlasTexture_siy4x"]
atlas = ExtResource("3_uks2p")
region = Rect2(0, 0, 16, 16)
[sub_resource type="SpriteFrames" id="SpriteFrames_i6h2x"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_rdbks")
"texture": SubResource("AtlasTexture_siy4x")
}],
"loop": true,
"name": &"default",
@ -45,8 +45,7 @@ shape = SubResource("CircleShape2D_xq7op")
[node name="AnimatedSprite2D" parent="." index="1"]
material = SubResource("CanvasItemMaterial_c882v")
position = Vector2(2.38419e-07, 2.38419e-07)
scale = Vector2(0.125, 0.125)
scale = Vector2(1, 1)
sprite_frames = SubResource("SpriteFrames_i6h2x")
[node name="NavigationAgent" type="NavigationAgent2D" parent="." index="2"]
@ -55,7 +54,6 @@ simplify_path = true
avoidance_enabled = true
avoidance_layers = 2560
avoidance_mask = 3630
debug_enabled = true
debug_use_custom = true
debug_path_custom_color = Color(1, 0, 0, 1)

View file

@ -0,0 +1,10 @@
extends ColorRect
@onready var animation = $AnimationPlayer
func _process(delta: float) -> void:
if Input.is_action_just_pressed("ui_accept"):
animation.play("RESET")
func _on_button_pressed() -> void:
animation.play("RESET")

View file

@ -19,7 +19,7 @@ extends "res://scenes/game/entities/entity.gd"
@onready var camera = $Camera2D
@onready var animation = $Camera2D/CanvasLayer/Control/AnimationPlayer
@onready var animation = $Camera2D/CanvasLayer/Control/ColorRect/AnimationPlayer
var rollSpeed = maxSpeed * 5
@ -202,6 +202,5 @@ func _on_storm_timer_damage_timeout() -> void:
func pause():
get_parent().pause()
func resume():
get_parent().resume()

View file

@ -1,4 +1,4 @@
[gd_scene load_steps=24 format=3 uid="uid://0duodsosmfpq"]
[gd_scene load_steps=32 format=3 uid="uid://0duodsosmfpq"]
[ext_resource type="PackedScene" uid="uid://b18cf4i8v6a1" path="res://scenes/game/entities/entity.tscn" id="1_kmfws"]
[ext_resource type="Script" path="res://scenes/game/entities/player/player.gd" id="2_s0pfn"]
@ -15,15 +15,93 @@
[ext_resource type="Texture2D" uid="uid://c2o4115sewunm" path="res://Assets/Icons/Roll.png" id="10_1rhoe"]
[ext_resource type="Texture2D" uid="uid://caumye6m8df7a" path="res://Assets/Icons/Storm.png" id="12_7rs7u"]
[ext_resource type="StyleBox" uid="uid://db7h680qdfcrv" path="res://scenes/menu/startMenu/Storm.tres" id="12_wohun"]
[ext_resource type="Script" path="res://scenes/game/entities/player/touch_controlls.gd" id="14_uohcp"]
[ext_resource type="Texture2D" uid="uid://brx27d2g615nm" path="res://Assets/Buttons/UpArrow.png" id="15_v6xc8"]
[ext_resource type="Texture2D" uid="uid://nrxf04ju38a3" path="res://Assets/Buttons/LeftArrow.png" id="16_qqkks"]
[ext_resource type="Texture2D" uid="uid://dhr0i40vi3fch" path="res://Assets/Buttons/DownArrow.png" id="17_0j1ng"]
[ext_resource type="Texture2D" uid="uid://cpna0j2jdy1tq" path="res://Assets/Buttons/RightArrow.png" id="18_277ym"]
[ext_resource type="Script" path="res://scenes/game/entities/player/color_rect.gd" id="19_8kbrx"]
[ext_resource type="Texture2D" uid="uid://s3oibl4hj0wu" path="res://Assets/Buttons/Roll.png" id="19_kcsvw"]
[ext_resource type="Texture2D" uid="uid://cskyeltw3j1o7" path="res://Assets/Icons/PickupSmall.png" id="20_omxwa"]
[sub_resource type="CircleShape2D" id="CircleShape2D_7ukjs"]
radius = 8.94427
[sub_resource type="Animation" id="Animation_1uxm1"]
resource_name = "Introduction"
length = 14.5
step = 0.5
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Camera2D/CanvasLayer/Control/ColorRect/IntroductionLabel:visible_ratio")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 1.5, 4.5, 6),
"transitions": PackedFloat32Array(1, 1, 1, 1),
"update": 0,
"values": [0.0, 1.0, 1.0, 0.0]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Camera2D/CanvasLayer/Control/ColorRect/WARNING:visible_ratio")
tracks/1/interp = 2
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(8, 9, 12, 14),
"transitions": PackedFloat32Array(1, 1, 1, 1),
"update": 0,
"values": [0.0, 1.0, 1.0, 0.0]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("Camera2D/CanvasLayer/Control/ColorRect:modulate")
tracks/2/interp = 2
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(14, 14.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(1, 1, 1, 1), Color(1, 1, 1, 0)]
}
tracks/3/type = "method"
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/path = NodePath(".")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/keys = {
"times": PackedFloat32Array(0, 14.5),
"transitions": PackedFloat32Array(1, 1),
"values": [{
"args": [],
"method": &"pause"
}, {
"args": [],
"method": &"resume"
}]
}
tracks/4/type = "value"
tracks/4/imported = false
tracks/4/enabled = true
tracks/4/path = NodePath("Camera2D/CanvasLayer/Control/ColorRect:visible")
tracks/4/interp = 1
tracks/4/loop_wrap = true
tracks/4/keys = {
"times": PackedFloat32Array(14, 14.5),
"transitions": PackedFloat32Array(1, 1),
"update": 1,
"values": [true, false]
}
[sub_resource type="Animation" id="Animation_4p2qj"]
length = 0.001
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/enabled = false
tracks/0/path = NodePath("Camera2D/CanvasLayer/Control/Storm:visible")
tracks/0/interp = 1
tracks/0/loop_wrap = true
@ -35,7 +113,7 @@ tracks/0/keys = {
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/enabled = false
tracks/1/path = NodePath("Camera2D/CanvasLayer/Control/Storm:scale")
tracks/1/interp = 1
tracks/1/loop_wrap = true
@ -47,8 +125,8 @@ tracks/1/keys = {
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("Camera2D/CanvasLayer/Control/IntroductionLabel:visible_ratio")
tracks/2/enabled = false
tracks/2/path = NodePath("Camera2D/CanvasLayer/Control/ColorRect/IntroductionLabel:visible_ratio")
tracks/2/interp = 1
tracks/2/loop_wrap = true
tracks/2/keys = {
@ -59,8 +137,8 @@ tracks/2/keys = {
}
tracks/3/type = "value"
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/path = NodePath("Camera2D/CanvasLayer/Control/WARNING:visible_ratio")
tracks/3/enabled = false
tracks/3/path = NodePath("Camera2D/CanvasLayer/Control/ColorRect/WARNING:visible_ratio")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/keys = {
@ -79,7 +157,50 @@ tracks/4/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Color(1, 1, 1, 1)]
"values": [Color(1, 1, 1, 0)]
}
tracks/5/type = "value"
tracks/5/imported = false
tracks/5/enabled = true
tracks/5/path = NodePath("Camera2D/CanvasLayer/Control/ColorRect:visible")
tracks/5/interp = 1
tracks/5/loop_wrap = true
tracks/5/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 1,
"values": [true]
}
tracks/6/type = "method"
tracks/6/imported = false
tracks/6/enabled = true
tracks/6/path = NodePath(".")
tracks/6/interp = 1
tracks/6/loop_wrap = true
tracks/6/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"values": [{
"args": [],
"method": &"resume"
}]
}
[sub_resource type="Animation" id="Animation_8ahng"]
resource_name = "StormTimer"
length = 0.8
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Camera2D/CanvasLayer/Control/Storm:scale")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.4, 0.8),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 0,
"values": [Vector2(1, 1), Vector2(1.1, 1.1), Vector2(1, 1)]
}
[sub_resource type="Animation" id="Animation_7uqa8"]
@ -110,81 +231,6 @@ tracks/1/keys = {
"values": [Vector2(0, 0), Vector2(1, 1)]
}
[sub_resource type="Animation" id="Animation_8ahng"]
resource_name = "StormTimer"
length = 0.8
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Camera2D/CanvasLayer/Control/Storm:scale")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.4, 0.8),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 0,
"values": [Vector2(1, 1), Vector2(1.1, 1.1), Vector2(1, 1)]
}
[sub_resource type="Animation" id="Animation_1uxm1"]
resource_name = "Introduction"
length = 21.0
step = 0.5
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Camera2D/CanvasLayer/Control/IntroductionLabel:visible_ratio")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 1.5, 4.5, 6),
"transitions": PackedFloat32Array(1, 1, 1, 1),
"update": 0,
"values": [0.0, 1.0, 1.0, 0.0]
}
tracks/1/type = "value"
tracks/1/imported = false
tracks/1/enabled = true
tracks/1/path = NodePath("Camera2D/CanvasLayer/Control/WARNING:visible_ratio")
tracks/1/interp = 2
tracks/1/loop_wrap = true
tracks/1/keys = {
"times": PackedFloat32Array(7, 9, 12, 14),
"transitions": PackedFloat32Array(1, 1, 1, 1),
"update": 0,
"values": [0.0, 1.0, 1.0, 0.0]
}
tracks/2/type = "value"
tracks/2/imported = false
tracks/2/enabled = true
tracks/2/path = NodePath("Camera2D/CanvasLayer/Control/ColorRect:modulate")
tracks/2/interp = 2
tracks/2/loop_wrap = true
tracks/2/keys = {
"times": PackedFloat32Array(15, 16.5),
"transitions": PackedFloat32Array(1, 1),
"update": 0,
"values": [Color(1, 1, 1, 1), Color(1, 1, 1, 0)]
}
tracks/3/type = "method"
tracks/3/imported = false
tracks/3/enabled = true
tracks/3/path = NodePath(".")
tracks/3/interp = 1
tracks/3/loop_wrap = true
tracks/3/keys = {
"times": PackedFloat32Array(0, 16.5),
"transitions": PackedFloat32Array(1, 1),
"values": [{
"args": [],
"method": &"pause"
}, {
"args": [],
"method": &"resume"
}]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_1cg8p"]
_data = {
"Introduction": SubResource("Animation_1uxm1"),
@ -253,8 +299,10 @@ theme = ExtResource("4_pkh7x")
[node name="HBoxContainer" type="HBoxContainer" parent="Camera2D/CanvasLayer/Control" index="0"]
layout_mode = 0
offset_right = 40.0
offset_bottom = 40.0
offset_left = 8.0
offset_top = 128.0
offset_right = 113.0
offset_bottom = 228.0
[node name="TextureRect" type="TextureRect" parent="Camera2D/CanvasLayer/Control/HBoxContainer" index="0"]
layout_mode = 2
@ -271,19 +319,31 @@ layout_mode = 2
[node name="VBoxContainer" type="VBoxContainer" parent="Camera2D/CanvasLayer/Control" index="1"]
modulate = Color(1, 1, 1, 0.901961)
layout_mode = 1
anchors_preset = 2
anchor_top = 1.0
anchor_bottom = 1.0
offset_left = 16.0
offset_top = -120.0
offset_right = 517.0
offset_bottom = -49.0
grow_vertical = 0
offset_left = 8.0
offset_top = 12.0
offset_right = 509.0
offset_bottom = 83.0
scale = Vector2(1.5, 1.5)
size_flags_horizontal = 3
alignment = 1
[node name="HBoxContainer2" type="HBoxContainer" parent="Camera2D/CanvasLayer/Control/VBoxContainer" index="0"]
[node name="HBoxContainer" type="HBoxContainer" parent="Camera2D/CanvasLayer/Control/VBoxContainer" index="0"]
layout_mode = 2
[node name="TextureRect" type="TextureRect" parent="Camera2D/CanvasLayer/Control/VBoxContainer/HBoxContainer" index="0"]
layout_mode = 2
texture = ExtResource("6_4smqb")
expand_mode = 2
[node name="HealthBar" type="ProgressBar" parent="Camera2D/CanvasLayer/Control/VBoxContainer/HBoxContainer" index="1"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_font_sizes/font_size = 16
theme_override_styles/background = ExtResource("7_luccy")
theme_override_styles/fill = ExtResource("8_kgbvc")
rounded = true
[node name="HBoxContainer2" type="HBoxContainer" parent="Camera2D/CanvasLayer/Control/VBoxContainer" index="1"]
layout_mode = 2
size_flags_vertical = 3
@ -302,35 +362,12 @@ theme_override_styles/fill = ExtResource("7_luccy")
fill_mode = 1
show_percentage = false
[node name="HBoxContainer" type="HBoxContainer" parent="Camera2D/CanvasLayer/Control/VBoxContainer" index="1"]
layout_mode = 2
[node name="TextureRect" type="TextureRect" parent="Camera2D/CanvasLayer/Control/VBoxContainer/HBoxContainer" index="0"]
layout_mode = 2
texture = ExtResource("6_4smqb")
expand_mode = 2
[node name="HealthBar" type="ProgressBar" parent="Camera2D/CanvasLayer/Control/VBoxContainer/HBoxContainer" index="1"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_font_sizes/font_size = 16
theme_override_styles/background = ExtResource("7_luccy")
theme_override_styles/fill = ExtResource("8_kgbvc")
rounded = true
[node name="ObjectValues" type="HBoxContainer" parent="Camera2D/CanvasLayer/Control" index="2"]
layout_mode = 1
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -288.0
offset_top = -112.0
offset_right = -22.0
offset_bottom = -12.0
grow_horizontal = 0
grow_vertical = 0
offset_left = 256.0
offset_top = 128.0
offset_right = 522.0
offset_bottom = 228.0
alignment = 2
[node name="MoneyLabel" type="Label" parent="Camera2D/CanvasLayer/Control/ObjectValues" index="0"]
@ -350,9 +387,10 @@ layout_mode = 1
anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -0.5
offset_right = 0.5
offset_bottom = 67.0
offset_left = -199.5
offset_top = 128.0
offset_right = 199.5
offset_bottom = 195.0
grow_horizontal = 2
text = "STORMWARNING"
@ -363,9 +401,9 @@ anchors_preset = 5
anchor_left = 0.5
anchor_right = 0.5
offset_left = -320.0
offset_top = 67.0
offset_top = 195.0
offset_right = 320.0
offset_bottom = 152.0
offset_bottom = 280.0
grow_horizontal = 2
pivot_offset = Vector2(320, 42)
@ -382,14 +420,76 @@ theme_override_styles/background = ExtResource("7_luccy")
theme_override_styles/fill = ExtResource("12_wohun")
show_percentage = false
[node name="AnimationPlayer" type="AnimationPlayer" parent="Camera2D/CanvasLayer/Control" index="5"]
process_mode = 3
root_node = NodePath("../../../..")
libraries = {
"": SubResource("AnimationLibrary_1cg8p")
}
[node name="TouchControlls" type="Control" parent="Camera2D/CanvasLayer/Control" index="5"]
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("14_uohcp")
[node name="VBoxContainer" type="VBoxContainer" parent="Camera2D/CanvasLayer/Control/TouchControlls" index="0"]
layout_mode = 1
anchors_preset = 2
anchor_top = 1.0
anchor_bottom = 1.0
offset_left = 32.0
offset_top = -448.0
offset_right = 160.0
offset_bottom = -364.0
grow_vertical = 0
scale = Vector2(5, 5)
[node name="HBoxContainer2" type="HBoxContainer" parent="Camera2D/CanvasLayer/Control/TouchControlls/VBoxContainer" index="0"]
layout_mode = 2
alignment = 1
[node name="UpButton" type="Button" parent="Camera2D/CanvasLayer/Control/TouchControlls/VBoxContainer/HBoxContainer2" index="0"]
layout_mode = 2
icon = ExtResource("15_v6xc8")
[node name="HBoxContainer" type="HBoxContainer" parent="Camera2D/CanvasLayer/Control/TouchControlls/VBoxContainer" index="1"]
layout_mode = 2
[node name="LeftButton" type="Button" parent="Camera2D/CanvasLayer/Control/TouchControlls/VBoxContainer/HBoxContainer" index="0"]
layout_mode = 2
icon = ExtResource("16_qqkks")
[node name="DownButton" type="Button" parent="Camera2D/CanvasLayer/Control/TouchControlls/VBoxContainer/HBoxContainer" index="1"]
layout_mode = 2
icon = ExtResource("17_0j1ng")
[node name="RightButton" type="Button" parent="Camera2D/CanvasLayer/Control/TouchControlls/VBoxContainer/HBoxContainer" index="2"]
layout_mode = 2
icon = ExtResource("18_277ym")
[node name="HBoxContainer" type="HBoxContainer" parent="Camera2D/CanvasLayer/Control/TouchControlls" index="1"]
layout_mode = 1
anchors_preset = 3
anchor_left = 1.0
anchor_top = 1.0
anchor_right = 1.0
anchor_bottom = 1.0
offset_left = -448.0
offset_top = -224.0
offset_right = -364.0
offset_bottom = -184.0
grow_horizontal = 0
grow_vertical = 0
scale = Vector2(5, 5)
[node name="RollButton" type="Button" parent="Camera2D/CanvasLayer/Control/TouchControlls/HBoxContainer" index="0"]
layout_mode = 2
icon = ExtResource("19_kcsvw")
[node name="PickupButton" type="Button" parent="Camera2D/CanvasLayer/Control/TouchControlls/HBoxContainer" index="1"]
layout_mode = 2
icon = ExtResource("20_omxwa")
[node name="ColorRect" type="ColorRect" parent="Camera2D/CanvasLayer/Control" index="6"]
process_mode = 3
modulate = Color(1, 1, 1, 0)
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
@ -397,8 +497,16 @@ anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
color = Color(0, 0, 0, 1)
script = ExtResource("19_8kbrx")
[node name="WARNING" type="Label" parent="Camera2D/CanvasLayer/Control" index="7"]
[node name="AnimationPlayer" type="AnimationPlayer" parent="Camera2D/CanvasLayer/Control/ColorRect" index="0"]
process_mode = 3
root_node = NodePath("../../../../..")
libraries = {
"": SubResource("AnimationLibrary_1cg8p")
}
[node name="WARNING" type="Label" parent="Camera2D/CanvasLayer/Control/ColorRect" index="1"]
process_mode = 3
layout_mode = 1
anchors_preset = 8
@ -419,7 +527,7 @@ autowrap_mode = 3
visible_characters = 0
visible_ratio = 0.0
[node name="IntroductionLabel" type="Label" parent="Camera2D/CanvasLayer/Control" index="8"]
[node name="IntroductionLabel" type="Label" parent="Camera2D/CanvasLayer/Control/ColorRect" index="2"]
process_mode = 3
layout_mode = 1
anchors_preset = 8
@ -439,6 +547,15 @@ vertical_alignment = 1
visible_characters = 0
visible_ratio = 0.0
[node name="Button" type="Button" parent="Camera2D/CanvasLayer/Control/ColorRect" index="3"]
modulate = Color(1, 1, 1, 0)
layout_mode = 1
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
[node name="RollTimer" type="Timer" parent="." index="3"]
one_shot = true
@ -472,7 +589,20 @@ shape = SubResource("CircleShape2D_bjveg")
[node name="StormTimerDamage" type="Timer" parent="." index="9"]
one_shot = true
[connection signal="animation_finished" from="Camera2D/CanvasLayer/Control/AnimationPlayer" to="." method="_on_animation_player_animation_finished"]
[connection signal="button_down" from="Camera2D/CanvasLayer/Control/TouchControlls/VBoxContainer/HBoxContainer2/UpButton" to="Camera2D/CanvasLayer/Control/TouchControlls" method="_on_up_button_button_down"]
[connection signal="button_up" from="Camera2D/CanvasLayer/Control/TouchControlls/VBoxContainer/HBoxContainer2/UpButton" to="Camera2D/CanvasLayer/Control/TouchControlls" method="_on_up_button_button_up"]
[connection signal="button_down" from="Camera2D/CanvasLayer/Control/TouchControlls/VBoxContainer/HBoxContainer/LeftButton" to="Camera2D/CanvasLayer/Control/TouchControlls" method="_on_left_button_button_down"]
[connection signal="button_up" from="Camera2D/CanvasLayer/Control/TouchControlls/VBoxContainer/HBoxContainer/LeftButton" to="Camera2D/CanvasLayer/Control/TouchControlls" method="_on_left_button_button_up"]
[connection signal="button_down" from="Camera2D/CanvasLayer/Control/TouchControlls/VBoxContainer/HBoxContainer/DownButton" to="Camera2D/CanvasLayer/Control/TouchControlls" method="_on_down_button_button_down"]
[connection signal="button_up" from="Camera2D/CanvasLayer/Control/TouchControlls/VBoxContainer/HBoxContainer/DownButton" to="Camera2D/CanvasLayer/Control/TouchControlls" method="_on_down_button_button_up"]
[connection signal="button_down" from="Camera2D/CanvasLayer/Control/TouchControlls/VBoxContainer/HBoxContainer/RightButton" to="Camera2D/CanvasLayer/Control/TouchControlls" method="_on_right_button_button_down"]
[connection signal="button_up" from="Camera2D/CanvasLayer/Control/TouchControlls/VBoxContainer/HBoxContainer/RightButton" to="Camera2D/CanvasLayer/Control/TouchControlls" method="_on_right_button_button_up"]
[connection signal="button_down" from="Camera2D/CanvasLayer/Control/TouchControlls/HBoxContainer/RollButton" to="Camera2D/CanvasLayer/Control/TouchControlls" method="_on_roll_button_button_down"]
[connection signal="button_up" from="Camera2D/CanvasLayer/Control/TouchControlls/HBoxContainer/RollButton" to="Camera2D/CanvasLayer/Control/TouchControlls" method="_on_roll_button_button_up"]
[connection signal="button_down" from="Camera2D/CanvasLayer/Control/TouchControlls/HBoxContainer/PickupButton" to="Camera2D/CanvasLayer/Control/TouchControlls" method="_on_pickup_button_button_down"]
[connection signal="button_up" from="Camera2D/CanvasLayer/Control/TouchControlls/HBoxContainer/PickupButton" to="Camera2D/CanvasLayer/Control/TouchControlls" method="_on_pickup_button_button_up"]
[connection signal="animation_finished" from="Camera2D/CanvasLayer/Control/ColorRect/AnimationPlayer" to="." method="_on_animation_player_animation_finished"]
[connection signal="pressed" from="Camera2D/CanvasLayer/Control/ColorRect/Button" to="Camera2D/CanvasLayer/Control/ColorRect" method="_on_button_pressed"]
[connection signal="timeout" from="RollTimer" to="." method="_on_roll_timeout"]
[connection signal="timeout" from="RollCooldownTimer" to="." method="_on_roll_cooldown_timer_timeout"]
[connection signal="signalHit" from="HitBox" to="." method="_on_hit_box_signal_hit"]

View file

@ -0,0 +1,46 @@
extends Control
func _ready() -> void:
if DisplayServer.is_touchscreen_available():
show()
func _on_up_button_button_down() -> void:
Input.action_press("MOVE_UP")
func _on_up_button_button_up() -> void:
Input.action_release("MOVE_UP")
func _on_left_button_button_down() -> void:
Input.action_press("MOVE_LEFT")
func _on_left_button_button_up() -> void:
Input.action_release("MOVE_LEFT")
func _on_down_button_button_down() -> void:
Input.action_press("MOVE_DOWN")
func _on_down_button_button_up() -> void:
Input.action_release("MOVE_DOWN")
func _on_right_button_button_down() -> void:
Input.action_press("MOVE_RIGHT")
func _on_right_button_button_up() -> void:
Input.action_release("MOVE_RIGHT")
func _on_roll_button_button_down() -> void:
Input.action_press("ROLL")
func _on_roll_button_button_up() -> void:
Input.action_release("ROLL")
func _on_pickup_button_button_down() -> void:
Input.action_press("Pickup")
func _on_pickup_button_button_up() -> void:
Input.action_release("Pickup")

View file

@ -1,19 +1,24 @@
[gd_scene load_steps=4 format=3 uid="uid://dgxw2n4ei2ahe"]
[gd_scene load_steps=5 format=3 uid="uid://dgxw2n4ei2ahe"]
[ext_resource type="Script" path="res://scenes/game/mainGame/main_game.gd" id="1_napbe"]
[ext_resource type="PackedScene" uid="uid://0duodsosmfpq" path="res://scenes/game/entities/player/player.tscn" id="3_sjgkj"]
[ext_resource type="PackedScene" uid="uid://br7eqr6jomsg4" path="res://scenes/game/map/map.tscn" id="3_vpriv"]
[ext_resource type="AudioStream" uid="uid://c3j07ntyhovpf" path="res://Assets/Music/Where am I.wav" id="4_0rvpn"]
[node name="mainGame" type="Node2D"]
script = ExtResource("1_napbe")
[node name="Player" parent="." instance=ExtResource("3_sjgkj")]
position = Vector2(-16, -88)
position = Vector2(-16, 0)
[node name="Map" parent="." instance=ExtResource("3_vpriv")]
[node name="StormTimer" type="Timer" parent="."]
one_shot = true
[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="."]
stream = ExtResource("4_0rvpn")
autoplay = true
[connection signal="death" from="Player" to="." method="_on_player_death"]
[connection signal="timeout" from="StormTimer" to="." method="_on_storm_timer_timeout"]

File diff suppressed because one or more lines are too long

View file

@ -18,11 +18,6 @@ func _physics_process(delta: float) -> void:
interactIcon.hide()
elif not isCarryied():
interactIcon.show()
#if isCarryied():
#interactIcon.hide()
#elif not isCarryied():
#interactIcon.show()
if player != null:
global_position.y = move_toward(global_position.y, player.global_position.y, 3)
@ -46,13 +41,6 @@ func getValue():
func isCarryied():
return player != null
#func _on_area_entered(area: Area2D) -> void:
#if area.is_in_group("Player"):
#interactIcon.show()
#
#
#
func _on_area_exited(area: Area2D) -> void:
if area.is_in_group("Player"):
interactIcon.hide()

View file

@ -7,7 +7,7 @@
radius = 8.0
[node name="Computer" instance=ExtResource("1_ahjmy")]
value = 100
value = 1000
weight = 40
[node name="CollisionShape2D" parent="." index="1"]

View file

@ -4,7 +4,8 @@
[ext_resource type="Texture2D" uid="uid://4qj6kf6qfwhv" path="res://Assets/Objects/Controller.png" id="2_agabt"]
[node name="Controller" instance=ExtResource("1_2gi3p")]
value = 50
weight = 5
[node name="Sprite2D" parent="." index="1"]
position = Vector2(0, -4)
[node name="Sprite2D" parent="." index="2"]
texture = ExtResource("2_agabt")

View file

@ -4,7 +4,7 @@
[ext_resource type="Texture2D" uid="uid://br853cx0laqjr" path="res://Assets/Objects/FoodTinCan.png" id="2_ywu5t"]
[node name="FoodTinCan" instance=ExtResource("1_5c6qq")]
weight = 10
[node name="Sprite2D" parent="." index="1"]
position = Vector2(0, -4)
[node name="Sprite2D" parent="." index="2"]
texture = ExtResource("2_ywu5t")

View file

@ -4,9 +4,8 @@
[ext_resource type="Texture2D" uid="uid://4dcme0lv0gs3" path="res://Assets/Objects/GameConsole.png" id="2_8xb0y"]
[node name="GameConsole" instance=ExtResource("1_uy3sa")]
value = 60
weight = 30
value = 600
weight = 35
[node name="Sprite2D" parent="." index="1"]
position = Vector2(0, -4)
[node name="Sprite2D" parent="." index="2"]
texture = ExtResource("2_8xb0y")

View file

@ -7,7 +7,7 @@
radius = 8.0
[node name="GoldBar" instance=ExtResource("1_iouty")]
value = 800
value = 1000
weight = 50
[node name="CollisionShape2D" parent="." index="1"]

View file

@ -4,7 +4,8 @@
[ext_resource type="Texture2D" uid="uid://brbshxkillo2g" path="res://Assets/Objects/Hammer.png" id="2_1akxm"]
[node name="Hammer" instance=ExtResource("1_x0fak")]
value = 30
weight = 10
[node name="Sprite2D" parent="." index="1"]
position = Vector2(0, -4)
[node name="Sprite2D" parent="." index="2"]
texture = ExtResource("2_1akxm")

View file

@ -4,9 +4,8 @@
[ext_resource type="Texture2D" uid="uid://dycry3xe2kkuv" path="res://Assets/Objects/helmet.png" id="2_afdlx"]
[node name="Helmet" instance=ExtResource("1_ft6b2")]
value = 55
value = 100
weight = 10
[node name="Sprite2D" parent="." index="1"]
position = Vector2(0, -4)
[node name="Sprite2D" parent="." index="2"]
texture = ExtResource("2_afdlx")

View file

@ -7,12 +7,11 @@
radius = 8.0
[node name="Monitor" instance=ExtResource("1_8hfxh")]
value = 50
weight = 10
value = 200
weight = 25
[node name="CollisionShape2D" parent="." index="0"]
[node name="CollisionShape2D" parent="." index="1"]
shape = SubResource("CircleShape2D_rhwnp")
[node name="Sprite2D" parent="." index="1"]
position = Vector2(0, -4)
[node name="Sprite2D" parent="." index="2"]
texture = ExtResource("2_7s1fc")

View file

@ -4,7 +4,8 @@
[ext_resource type="Texture2D" uid="uid://ddaedsbebomx5" path="res://Assets/Objects/MysteryBriefcase.png" id="2_2j5i0"]
[node name="MysteryBriefcase" instance=ExtResource("1_h8wmp")]
value = 900
weight = 20
[node name="Sprite2D" parent="." index="1"]
position = Vector2(0, -4)
[node name="Sprite2D" parent="." index="2"]
texture = ExtResource("2_2j5i0")

View file

@ -4,7 +4,8 @@
[ext_resource type="Texture2D" uid="uid://cyjlwsdf51v8b" path="res://Assets/Objects/MyteryLiquid.png" id="2_nkcej"]
[node name="MysteryLiquid" instance=ExtResource("1_nnm1b")]
value = 500
weight = 10
[node name="Sprite2D" parent="." index="1"]
position = Vector2(0, -4)
[node name="Sprite2D" parent="." index="2"]
texture = ExtResource("2_nkcej")

View file

@ -4,7 +4,8 @@
[ext_resource type="Texture2D" uid="uid://dq8lm6a4tyoss" path="res://Assets/Objects/Screwdriver.png" id="2_14dxu"]
[node name="Screwdriver" instance=ExtResource("1_uny6r")]
value = 30
weight = 10
[node name="Sprite2D" parent="." index="1"]
position = Vector2(0, -4)
[node name="Sprite2D" parent="." index="2"]
texture = ExtResource("2_14dxu")

View file

@ -4,7 +4,7 @@
[ext_resource type="Texture2D" uid="uid://cxpy70verc74h" path="res://Assets/Objects/SodaCan.png" id="2_1yknj"]
[node name="SodaCan" instance=ExtResource("1_prdq3")]
weight = 5
[node name="Sprite2D" parent="." index="1"]
position = Vector2(0, -4)
[node name="Sprite2D" parent="." index="2"]
texture = ExtResource("2_1yknj")

View file

@ -4,7 +4,8 @@
[ext_resource type="Texture2D" uid="uid://bmlb8b00cro1f" path="res://Assets/Objects/Speaker.png" id="2_t3xrn"]
[node name="Speaker" instance=ExtResource("1_jlw2l")]
value = 700
weight = 35
[node name="Sprite2D" parent="." index="1"]
position = Vector2(0, -4)
[node name="Sprite2D" parent="." index="2"]
texture = ExtResource("2_t3xrn")

View file

@ -4,7 +4,8 @@
[ext_resource type="Texture2D" uid="uid://bwl8v34qo8pif" path="res://Assets/Objects/TeddyBear.png" id="2_xa3pj"]
[node name="TeddyBear" instance=ExtResource("1_g3qoc")]
value = 40
weight = 10
[node name="Sprite2D" parent="." index="1"]
position = Vector2(0, -4)
[node name="Sprite2D" parent="." index="2"]
texture = ExtResource("2_xa3pj")

View file

@ -4,7 +4,8 @@
[ext_resource type="Texture2D" uid="uid://cug6xc65ak64a" path="res://Assets/Objects/Telephone.png" id="2_1w0uo"]
[node name="Telephone" instance=ExtResource("1_wpn0g")]
value = 60
weight = 25
[node name="Sprite2D" parent="." index="1"]
position = Vector2(0, -4)
[node name="Sprite2D" parent="." index="2"]
texture = ExtResource("2_1w0uo")

View file

@ -4,7 +4,8 @@
[ext_resource type="Texture2D" uid="uid://bo803pp8gtg5y" path="res://Assets/Objects/Toolbox.png" id="2_co5u1"]
[node name="Toolbox" instance=ExtResource("1_fk7ja")]
value = 150
weight = 30
[node name="Sprite2D" parent="." index="1"]
position = Vector2(0, -4)
[node name="Sprite2D" parent="." index="2"]
texture = ExtResource("2_co5u1")

View file

@ -8,6 +8,8 @@ radius = 8.0
[node name="Vase" instance=ExtResource("1_fkdlr")]
y_sort_enabled = true
value = 100
weight = 35
[node name="CollisionShape2D" parent="." index="1"]
shape = SubResource("CircleShape2D_pmiic")

View file

@ -1,11 +1,20 @@
extends Node
var fullscreen = false
func _ready() -> void:
loadStartMenu()
func _process(delta: float) -> void:
if G.extracted and get_child(0).name != "EndScreen":
loadEndScren()
if Input.is_action_just_pressed("fullscreen"):
if not fullscreen:
DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_FULLSCREEN)
fullscreen = true
elif fullscreen:
DisplayServer.window_set_mode(DisplayServer.WINDOW_MODE_WINDOWED)
fullscreen = false
func loadGame():
G.resetValues()
@ -18,6 +27,11 @@ func loadEndScren():
i.queue_free()
add_child(load("res://scenes/menu/endScreen/end_screen.tscn").instantiate())
func loadHelp():
for i in get_children():
i.queue_free()
add_child(load("res://scenes/menu/help/help.tscn").instantiate())
func loadStartMenu():
G.resetValues()

File diff suppressed because one or more lines are too long

View file

@ -1,8 +1,9 @@
[gd_scene load_steps=9 format=3 uid="uid://jga6awfuwsyp"]
[gd_scene load_steps=10 format=3 uid="uid://jga6awfuwsyp"]
[ext_resource type="Theme" uid="uid://cotw1alu4b2ad" path="res://Theme/MainTheme.tres" id="1_iscr2"]
[ext_resource type="Texture2D" uid="uid://drjv0kpcfubr0" path="res://Assets/Icons/Dollar.png" id="2_54fgt"]
[ext_resource type="Script" path="res://scenes/menu/endScreen/end_screen.gd" id="2_wokl6"]
[ext_resource type="PackedScene" uid="uid://iq8pxx1suuqt" path="res://scenes/menu/background.tscn" id="3_33v35"]
[ext_resource type="Texture2D" uid="uid://b27g8eulkxvyr" path="res://Assets/Icons/Health.png" id="3_n82yp"]
[sub_resource type="LabelSettings" id="LabelSettings_3uh6l"]
@ -39,6 +40,8 @@ grow_vertical = 2
theme = ExtResource("1_iscr2")
script = ExtResource("2_wokl6")
[node name="Background" parent="." instance=ExtResource("3_33v35")]
[node name="CenterContainer" type="CenterContainer" parent="."]
layout_mode = 1
anchors_preset = 15

View file

@ -0,0 +1,11 @@
[gd_resource type="StyleBoxTexture" load_steps=2 format=3 uid="uid://drm7nwpd677bf"]
[sub_resource type="CompressedTexture2D" id="CompressedTexture2D_nejn8"]
load_path = "res://.godot/imported/Button1.png-365ba86758a2b041f5719410075e763e.ctex"
[resource]
texture = SubResource("CompressedTexture2D_nejn8")
texture_margin_left = 10.0
texture_margin_top = 10.0
texture_margin_right = 10.0
texture_margin_bottom = 10.0

5
scenes/menu/help/help.gd Normal file
View file

@ -0,0 +1,5 @@
extends Control
func _on_button_button_up() -> void:
get_parent().loadStartMenu()

117
scenes/menu/help/help.tscn Normal file
View file

@ -0,0 +1,117 @@
[gd_scene load_steps=5 format=3 uid="uid://cvx1lyddvb8y5"]
[ext_resource type="Script" path="res://scenes/menu/help/help.gd" id="1_c8tk5"]
[ext_resource type="Theme" uid="uid://cotw1alu4b2ad" path="res://Theme/MainTheme.tres" id="1_jto7r"]
[ext_resource type="Texture2D" uid="uid://nrxf04ju38a3" path="res://Assets/Buttons/LeftArrow.png" id="2_s0e6h"]
[ext_resource type="PackedScene" uid="uid://iq8pxx1suuqt" path="res://scenes/menu/background.tscn" id="2_w4woh"]
[node name="HELP" 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_jto7r")
script = ExtResource("1_c8tk5")
[node name="Background" parent="." instance=ExtResource("2_w4woh")]
[node name="Label" type="Label" parent="."]
visible = false
layout_mode = 1
anchors_preset = 8
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -500.0
offset_top = -500.0
offset_right = 500.0
offset_bottom = 500.0
grow_horizontal = 2
grow_vertical = 2
text = "KEYBOARD
"
[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 = -500.0
offset_top = -500.0
offset_right = 500.0
offset_bottom = 500.0
grow_horizontal = 2
grow_vertical = 2
alignment = 1
[node name="RichTextLabel" type="RichTextLabel" parent="HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
focus_mode = 2
bbcode_enabled = true
text = "[u][b]Keyboard/Tastatur[/b][/u]
[b]Move Left[/b]
[ul]A[/ul]
[b]Move Right[/b]
[ul]D[/ul]
[b]Move Up[/b]
[ul]W[/ul]
[b]Move Down[/b]
[ul]S[/ul]
[b]Roll[/b]
[ul]R[/ul]
[ul]Shift[/ul]
[b]Pickup[/b]
[ul]E[/ul]"
selection_enabled = true
[node name="RichTextLabel2" type="RichTextLabel" parent="HBoxContainer"]
layout_mode = 2
size_flags_horizontal = 3
focus_mode = 2
bbcode_enabled = true
text = "[u][b]Controller[/b][/u]
[b]Move Left[/b]
[ul]Left Stick Left[/ul]
[b]Move Right[/b]
[ul]Left Stick Right[/ul]
[b]Move Up[/b]
[ul]Left Stick Up[/ul]
[b]Move Down[/b]
[ul]Left Stick Down[/ul]
[b]Roll[/b]
[ul]X (XBOX)[/ul]
[ul]Y (Nintendo)[/ul]
[b]Pickup[/b]
[ul]A (XBOX)[/ul]
[ul]B (NIntendo)[/ul]
"
selection_enabled = true
[node name="Button" type="Button" parent="."]
layout_mode = 1
offset_left = 16.0
offset_top = 16.0
offset_right = 56.0
offset_bottom = 56.0
scale = Vector2(2, 2)
icon = ExtResource("2_s0e6h")
[connection signal="button_up" from="Button" to="." method="_on_button_button_up"]

View file

@ -3,3 +3,11 @@ extends Control
func _on_start_button_button_up() -> void:
get_parent().loadGame()
func _physics_process(delta: float) -> void:
$Portal.play("default")
$Portal.position = get_viewport().get_visible_rect().size /2
func _on_start_button_2_pressed() -> void:
get_parent().loadHelp()

View file

@ -1,9 +1,45 @@
[gd_scene load_steps=5 format=3 uid="uid://ceu62dbrvd31p"]
[gd_scene load_steps=10 format=3 uid="uid://ceu62dbrvd31p"]
[ext_resource type="Theme" uid="uid://cotw1alu4b2ad" path="res://Theme/MainTheme.tres" id="1_2eoii"]
[ext_resource type="Script" path="res://scenes/menu/startMenu/start_menu.gd" id="2_y1mcp"]
[ext_resource type="PackedScene" uid="uid://br7eqr6jomsg4" path="res://scenes/game/map/map.tscn" id="3_w2x7d"]
[ext_resource type="Texture2D" uid="uid://b2xbgtcyxvi73" path="res://Assets/Player/Player.png" id="4_0cn2q"]
[ext_resource type="PackedScene" uid="uid://iq8pxx1suuqt" path="res://scenes/menu/background.tscn" id="3_1hlwn"]
[ext_resource type="Texture2D" uid="uid://c3o6hrpc0fim2" path="res://Assets/Portal.png" id="3_pyyyw"]
[sub_resource type="AtlasTexture" id="AtlasTexture_drumk"]
atlas = ExtResource("3_pyyyw")
region = Rect2(0, 0, 128, 128)
[sub_resource type="AtlasTexture" id="AtlasTexture_ixrr4"]
atlas = ExtResource("3_pyyyw")
region = Rect2(128, 0, 128, 128)
[sub_resource type="AtlasTexture" id="AtlasTexture_uu1bm"]
atlas = ExtResource("3_pyyyw")
region = Rect2(256, 0, 128, 128)
[sub_resource type="AtlasTexture" id="AtlasTexture_fv6fu"]
atlas = ExtResource("3_pyyyw")
region = Rect2(384, 0, 128, 128)
[sub_resource type="SpriteFrames" id="SpriteFrames_scf5k"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": SubResource("AtlasTexture_drumk")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_ixrr4")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_uu1bm")
}, {
"duration": 1.0,
"texture": SubResource("AtlasTexture_fv6fu")
}],
"loop": true,
"name": &"default",
"speed": 5.0
}]
[node name="StartMenu" type="Control"]
layout_mode = 3
@ -15,18 +51,16 @@ grow_vertical = 2
theme = ExtResource("1_2eoii")
script = ExtResource("2_y1mcp")
[node name="Map" parent="." instance=ExtResource("3_w2x7d")]
visible = false
position = Vector2(976, 540)
[node name="Background" parent="." instance=ExtResource("3_1hlwn")]
[node name="Sprite2D" type="Sprite2D" parent="."]
visible = false
position = Vector2(960, 456)
scale = Vector2(1.5, 1.5)
texture = ExtResource("4_0cn2q")
hframes = 25
[node name="Portal" type="AnimatedSprite2D" parent="."]
position = Vector2(956, 542)
scale = Vector2(2, 2)
sprite_frames = SubResource("SpriteFrames_scf5k")
frame_progress = 0.053071
[node name="ColorRect" type="ColorRect" parent="."]
visible = false
modulate = Color(1, 1, 1, 0.376471)
layout_mode = 1
anchors_preset = 15
@ -51,4 +85,9 @@ layout_mode = 2
layout_mode = 2
text = "PLAY"
[node name="StartButton2" type="Button" parent="CenterContainer/VBoxContainer"]
layout_mode = 2
text = "HELP"
[connection signal="button_up" from="CenterContainer/VBoxContainer/StartButton" to="." method="_on_start_button_button_up"]
[connection signal="pressed" from="CenterContainer/VBoxContainer/StartButton2" to="." method="_on_start_button_2_pressed"]