316 lines
9.2 KiB
Plaintext
316 lines
9.2 KiB
Plaintext
[gd_scene format=3 uid="uid://cmb3b7xrlboy3"]
|
|
|
|
[ext_resource type="Script" uid="uid://bobw4cfg1v6gj" path="res://player.gd" id="1_4flbx"]
|
|
[ext_resource type="PackedScene" uid="uid://byv518wlck1t4" path="res://special_upgrades.tscn" id="2_hqtel"]
|
|
[ext_resource type="PackedScene" uid="uid://52hoyqjot1cs" path="res://shop.tscn" id="2_i3pqv"]
|
|
[ext_resource type="PackedScene" uid="uid://ct7cc7qg3hpu1" path="res://upgrades.tscn" id="2_onrkg"]
|
|
[ext_resource type="Texture2D" uid="uid://bpfvioqm4kbv8" path="res://assets/Images/arrow.png" id="4_hqtel"]
|
|
|
|
[sub_resource type="PlaneMesh" id="PlaneMesh_sh265"]
|
|
size = Vector2(1, 1)
|
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_4flbx"]
|
|
albedo_color = Color(1, 0, 0, 1)
|
|
|
|
[sub_resource type="CylinderShape3D" id="CylinderShape3D_i3pqv"]
|
|
height = 0.5
|
|
radius = 0.75
|
|
|
|
[sub_resource type="CylinderShape3D" id="CylinderShape3D_4flbx"]
|
|
height = 0.5
|
|
radius = 1.0
|
|
|
|
[sub_resource type="CylinderShape3D" id="CylinderShape3D_onrkg"]
|
|
height = 1.0
|
|
radius = 30.0
|
|
|
|
[sub_resource type="CylinderShape3D" id="CylinderShape3D_hqtel"]
|
|
height = 0.5
|
|
radius = 50.0
|
|
|
|
[sub_resource type="PlaneMesh" id="PlaneMesh_sweqy"]
|
|
size = Vector2(4, 4)
|
|
|
|
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_2hs0m"]
|
|
transparency = 1
|
|
albedo_texture = ExtResource("4_hqtel")
|
|
|
|
[node name="Player" type="CharacterBody3D" unique_id=17046866]
|
|
collision_layer = 4
|
|
collision_mask = 3
|
|
script = ExtResource("1_4flbx")
|
|
|
|
[node name="SpecialUpgrades" parent="." unique_id=1238785974 instance=ExtResource("2_hqtel")]
|
|
|
|
[node name="Upgrades" parent="." unique_id=1484491196 instance=ExtResource("2_onrkg")]
|
|
|
|
[node name="Mesh" type="MeshInstance3D" parent="." unique_id=1740724392]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.1, 0)
|
|
mesh = SubResource("PlaneMesh_sh265")
|
|
surface_material_override/0 = SubResource("StandardMaterial3D_4flbx")
|
|
|
|
[node name="Collision" type="CollisionShape3D" parent="." unique_id=271233394]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.1, 0)
|
|
shape = SubResource("CylinderShape3D_i3pqv")
|
|
debug_color = Color(0.41852123, 0.4635067, 0.996484, 0.41960785)
|
|
|
|
[node name="SpeedBoostTimer" type="Timer" parent="." unique_id=1248180543]
|
|
wait_time = 3.0
|
|
one_shot = true
|
|
|
|
[node name="TimeLimit" type="Timer" parent="." unique_id=1568603467]
|
|
wait_time = 60.0
|
|
one_shot = true
|
|
|
|
[node name="Shop" parent="." unique_id=632945658 instance=ExtResource("2_i3pqv")]
|
|
visible = false
|
|
|
|
[node name="FinishControl" type="Control" parent="." unique_id=1717901238]
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
|
|
[node name="BackgroundRect" type="ColorRect" parent="FinishControl" unique_id=521348599]
|
|
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.39215687)
|
|
|
|
[node name="ScoreLabel" type="Label" parent="FinishControl" unique_id=847078539]
|
|
layout_mode = 1
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -282.0
|
|
offset_top = -87.0
|
|
offset_right = -23.0
|
|
offset_bottom = 186.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
pivot_offset_ratio = Vector2(0.5, 0.5)
|
|
theme_override_colors/font_color = Color(1, 1, 1, 1)
|
|
theme_override_font_sizes/font_size = 200
|
|
text = "A"
|
|
horizontal_alignment = 1
|
|
vertical_alignment = 1
|
|
|
|
[node name="DescLabel" type="Label" parent="FinishControl" unique_id=566345314]
|
|
layout_mode = 1
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = 64.0
|
|
offset_top = -109.0
|
|
offset_right = 393.0
|
|
offset_bottom = 4.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
pivot_offset_ratio = Vector2(0.5, 0.5)
|
|
theme_override_font_sizes/font_size = 20
|
|
text = "Diners guanyat:
|
|
Diners total:"
|
|
vertical_alignment = 1
|
|
|
|
[node name="ScoreTitleLabel" type="Label" parent="FinishControl" unique_id=167720596]
|
|
layout_mode = 1
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -448.0
|
|
offset_top = -99.0
|
|
offset_right = 140.0
|
|
offset_bottom = -16.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
pivot_offset_ratio = Vector2(0.5, 0.5)
|
|
theme_override_colors/font_color = Color(1, 1, 1, 1)
|
|
theme_override_font_sizes/font_size = 40
|
|
text = "Puntuació:"
|
|
horizontal_alignment = 1
|
|
vertical_alignment = 1
|
|
|
|
[node name="TitleLabel" type="Label" parent="FinishControl" unique_id=130066362]
|
|
layout_mode = 1
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -294.0
|
|
offset_top = -198.0
|
|
offset_right = 294.0
|
|
offset_bottom = -115.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
pivot_offset_ratio = Vector2(0.5, 0.5)
|
|
theme_override_colors/font_color = Color(1, 1, 1, 1)
|
|
theme_override_font_sizes/font_size = 60
|
|
text = "Has arribat a temps!"
|
|
horizontal_alignment = 1
|
|
vertical_alignment = 1
|
|
|
|
[node name="ContinueButton" type="Button" parent="FinishControl" unique_id=873425510]
|
|
layout_mode = 1
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = 120.0
|
|
offset_top = 87.0
|
|
offset_right = 255.5
|
|
offset_bottom = 125.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
text = "Següent nivell"
|
|
|
|
[node name="TitleHr" type="ColorRect" parent="FinishControl" unique_id=1639067726]
|
|
layout_mode = 1
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -260.0
|
|
offset_top = -109.0
|
|
offset_right = 277.0
|
|
offset_bottom = -107.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
|
|
[node name="FailControl" type="Control" parent="." unique_id=640174831]
|
|
visible = false
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
|
|
[node name="ColorRect" type="ColorRect" parent="FailControl" unique_id=1806162242]
|
|
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.39215687)
|
|
|
|
[node name="TitleLabel" type="Label" parent="FailControl" unique_id=1727971844]
|
|
layout_mode = 1
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -220.0
|
|
offset_top = -63.0
|
|
offset_right = 220.0
|
|
offset_bottom = 20.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
pivot_offset_ratio = Vector2(0.5, 0.5)
|
|
theme_override_colors/font_color = Color(1, 1, 1, 1)
|
|
theme_override_font_sizes/font_size = 60
|
|
text = "Temps esgotat!"
|
|
horizontal_alignment = 1
|
|
vertical_alignment = 1
|
|
|
|
[node name="RetryButton" type="Button" parent="FailControl" unique_id=1422422701]
|
|
layout_mode = 1
|
|
anchors_preset = 8
|
|
anchor_left = 0.5
|
|
anchor_top = 0.5
|
|
anchor_right = 0.5
|
|
anchor_bottom = 0.5
|
|
offset_left = -38.0
|
|
offset_top = 36.5
|
|
offset_right = 38.0
|
|
offset_bottom = 67.5
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
text = "Reiniciar"
|
|
|
|
[node name="HUD" type="Control" parent="." unique_id=1781259393]
|
|
visible = false
|
|
layout_mode = 3
|
|
anchors_preset = 15
|
|
anchor_right = 1.0
|
|
anchor_bottom = 1.0
|
|
grow_horizontal = 2
|
|
grow_vertical = 2
|
|
|
|
[node name="StageLabel" type="Label" parent="HUD" unique_id=971924774]
|
|
layout_mode = 1
|
|
anchors_preset = 5
|
|
anchor_left = 0.5
|
|
anchor_right = 0.5
|
|
offset_left = -28.0
|
|
offset_top = 10.0
|
|
offset_right = 29.0
|
|
offset_bottom = 33.0
|
|
grow_horizontal = 2
|
|
theme_override_colors/font_color = Color(0, 0, 0, 1)
|
|
theme_override_font_sizes/font_size = 20
|
|
text = "Stage X"
|
|
horizontal_alignment = 1
|
|
|
|
[node name="TimeLimitLabel" type="Label" parent="HUD" unique_id=1179212384]
|
|
layout_mode = 0
|
|
offset_left = 10.0
|
|
offset_top = 10.0
|
|
offset_right = 110.0
|
|
offset_bottom = 33.0
|
|
theme_override_colors/font_color = Color(0, 0, 0, 1)
|
|
text = "XX:XX"
|
|
|
|
[node name="StaminaRect" type="ColorRect" parent="HUD" unique_id=706658940]
|
|
layout_mode = 0
|
|
offset_left = 10.0
|
|
offset_top = 41.0
|
|
offset_right = 110.0
|
|
offset_bottom = 64.0
|
|
color = Color(0.8197299, 0.0039063096, 0.18416114, 1)
|
|
|
|
[node name="Hurtbox" type="Area3D" parent="." unique_id=2004081669]
|
|
|
|
[node name="Collision" type="CollisionShape3D" parent="Hurtbox" unique_id=1101412773]
|
|
shape = SubResource("CylinderShape3D_4flbx")
|
|
debug_color = Color(0.99958235, 0, 0.12291277, 0.41960785)
|
|
|
|
[node name="SpawnArea" type="Area3D" parent="." unique_id=847883204]
|
|
|
|
[node name="Collision" type="CollisionShape3D" parent="SpawnArea" unique_id=742727591]
|
|
shape = SubResource("CylinderShape3D_onrkg")
|
|
debug_color = Color(0.5381443, 0.5430501, 0.4771669, 0.41960785)
|
|
|
|
[node name="DespawnArea" type="Area3D" parent="." unique_id=161247633]
|
|
|
|
[node name="Collision" type="CollisionShape3D" parent="DespawnArea" unique_id=1796984889]
|
|
shape = SubResource("CylinderShape3D_hqtel")
|
|
debug_color = Color(0.6328197, 0.113640614, 0, 0.41960785)
|
|
|
|
[node name="Arrow" type="MeshInstance3D" parent="." unique_id=870899544]
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 10, 0)
|
|
mesh = SubResource("PlaneMesh_sweqy")
|
|
surface_material_override/0 = SubResource("StandardMaterial3D_2hs0m")
|
|
|
|
[connection signal="timeout" from="TimeLimit" to="." method="_on_time_limit_timeout"]
|
|
[connection signal="shop_exit" from="Shop" to="." method="_on_shop_shop_exit"]
|
|
[connection signal="pressed" from="FinishControl/ContinueButton" to="." method="_on_continue_button_pressed"]
|
|
[connection signal="pressed" from="FailControl/RetryButton" to="." method="_on_retry_button_pressed"]
|
|
[connection signal="area_entered" from="Hurtbox" to="." method="_on_area_area_entered"]
|
|
[connection signal="area_exited" from="Hurtbox" to="." method="_on_area_area_exited"]
|