[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://ct7cc7qg3hpu1" path="res://upgrades.tscn" id="2_onrkg"] [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 [node name="Player" type="CharacterBody3D" unique_id=17046866] collision_layer = 4 collision_mask = 3 script = ExtResource("1_4flbx") [node name="Upgrades" parent="." unique_id=1238785974 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="TimeLimit" type="Timer" parent="." unique_id=1568603467] wait_time = 60.0 one_shot = true [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] 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) [connection signal="timeout" from="TimeLimit" to="." method="_on_time_limit_timeout"] [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"]