2024-11-02 09:49:14 -06:00
|
|
|
[gd_scene load_steps=15 format=3 uid="uid://cy7t2tc4y3b4"]
|
2024-10-20 20:27:08 -06:00
|
|
|
|
|
|
|
[ext_resource type="Script" path="res://src/player/shot_setup/shot_setup.gd" id="1_r6ei4"]
|
2024-11-02 19:05:49 -06:00
|
|
|
[ext_resource type="PackedScene" uid="uid://dfttci386ohip" path="res://src/player/physics_ball/physics_ball.tscn" id="2_1i5j5"]
|
2024-11-01 16:33:13 -06:00
|
|
|
[ext_resource type="PackedScene" uid="uid://c2k88ns0h5ie1" path="res://src/ui/arrow.tscn" id="2_s70wl"]
|
2024-10-20 20:27:08 -06:00
|
|
|
|
|
|
|
[sub_resource type="CapsuleMesh" id="CapsuleMesh_5uovl"]
|
|
|
|
|
2024-11-02 19:05:49 -06:00
|
|
|
[sub_resource type="Animation" id="Animation_ug2a7"]
|
|
|
|
length = 0.001
|
2024-11-02 09:49:14 -06:00
|
|
|
tracks/0/type = "value"
|
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
|
|
|
tracks/0/path = NodePath(".:visible")
|
|
|
|
tracks/0/interp = 1
|
|
|
|
tracks/0/loop_wrap = true
|
|
|
|
tracks/0/keys = {
|
|
|
|
"times": PackedFloat32Array(0),
|
|
|
|
"transitions": PackedFloat32Array(1),
|
|
|
|
"update": 1,
|
|
|
|
"values": [true]
|
|
|
|
}
|
|
|
|
tracks/1/type = "value"
|
|
|
|
tracks/1/imported = false
|
|
|
|
tracks/1/enabled = true
|
|
|
|
tracks/1/path = NodePath(".:scale")
|
2024-11-02 19:05:49 -06:00
|
|
|
tracks/1/interp = 1
|
2024-11-02 09:49:14 -06:00
|
|
|
tracks/1/loop_wrap = true
|
|
|
|
tracks/1/keys = {
|
2024-11-02 19:05:49 -06:00
|
|
|
"times": PackedFloat32Array(0),
|
|
|
|
"transitions": PackedFloat32Array(1),
|
2024-11-02 09:49:14 -06:00
|
|
|
"update": 0,
|
2024-11-02 19:05:49 -06:00
|
|
|
"values": [Vector3(0.001, 0.001, 0.001)]
|
2024-11-02 09:49:14 -06:00
|
|
|
}
|
|
|
|
|
2024-11-02 19:05:49 -06:00
|
|
|
[sub_resource type="Animation" id="Animation_3obkd"]
|
|
|
|
resource_name = "hide"
|
|
|
|
length = 0.42
|
|
|
|
step = 0.01
|
2024-11-02 09:49:14 -06:00
|
|
|
tracks/0/type = "value"
|
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
|
|
|
tracks/0/path = NodePath(".:visible")
|
|
|
|
tracks/0/interp = 1
|
|
|
|
tracks/0/loop_wrap = true
|
|
|
|
tracks/0/keys = {
|
2024-11-02 19:05:49 -06:00
|
|
|
"times": PackedFloat32Array(0, 0.42),
|
|
|
|
"transitions": PackedFloat32Array(1, 1),
|
2024-11-02 09:49:14 -06:00
|
|
|
"update": 1,
|
2024-11-02 19:05:49 -06:00
|
|
|
"values": [true, false]
|
2024-11-02 09:49:14 -06:00
|
|
|
}
|
|
|
|
tracks/1/type = "value"
|
|
|
|
tracks/1/imported = false
|
|
|
|
tracks/1/enabled = true
|
|
|
|
tracks/1/path = NodePath(".:scale")
|
2024-11-02 19:05:49 -06:00
|
|
|
tracks/1/interp = 2
|
2024-11-02 09:49:14 -06:00
|
|
|
tracks/1/loop_wrap = true
|
|
|
|
tracks/1/keys = {
|
2024-11-02 19:05:49 -06:00
|
|
|
"times": PackedFloat32Array(0, 0.42),
|
|
|
|
"transitions": PackedFloat32Array(1.618, 1),
|
2024-11-02 09:49:14 -06:00
|
|
|
"update": 0,
|
2024-11-02 19:05:49 -06:00
|
|
|
"values": [Vector3(1, 1, 1), Vector3(0.001, 0.001, 0.001)]
|
2024-11-02 09:49:14 -06:00
|
|
|
}
|
|
|
|
|
2024-11-02 19:05:49 -06:00
|
|
|
[sub_resource type="Animation" id="Animation_dku72"]
|
|
|
|
resource_name = "show"
|
2024-11-02 09:49:14 -06:00
|
|
|
length = 0.42
|
|
|
|
tracks/0/type = "value"
|
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
|
|
|
tracks/0/path = NodePath(".:visible")
|
|
|
|
tracks/0/interp = 1
|
|
|
|
tracks/0/loop_wrap = true
|
|
|
|
tracks/0/keys = {
|
2024-11-02 19:05:49 -06:00
|
|
|
"times": PackedFloat32Array(0),
|
|
|
|
"transitions": PackedFloat32Array(1),
|
2024-11-02 09:49:14 -06:00
|
|
|
"update": 1,
|
2024-11-02 19:05:49 -06:00
|
|
|
"values": [true]
|
2024-11-02 09:49:14 -06:00
|
|
|
}
|
|
|
|
tracks/1/type = "value"
|
|
|
|
tracks/1/imported = false
|
|
|
|
tracks/1/enabled = true
|
|
|
|
tracks/1/path = NodePath(".:scale")
|
|
|
|
tracks/1/interp = 2
|
|
|
|
tracks/1/loop_wrap = true
|
|
|
|
tracks/1/keys = {
|
2024-11-02 19:05:49 -06:00
|
|
|
"times": PackedFloat32Array(0, 0.233333, 0.366667, 0.42),
|
|
|
|
"transitions": PackedFloat32Array(0.618, 1, 1, 1),
|
2024-11-02 09:49:14 -06:00
|
|
|
"update": 0,
|
2024-11-02 19:05:49 -06:00
|
|
|
"values": [Vector3(0.001, 0.001, 0.001), Vector3(1.1, 1.1, 1.1), Vector3(0.95, 0.95, 0.95), Vector3(1, 1, 1)]
|
2024-11-02 09:49:14 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_rw0cf"]
|
|
|
|
_data = {
|
|
|
|
"RESET": SubResource("Animation_ug2a7"),
|
|
|
|
"hide": SubResource("Animation_3obkd"),
|
|
|
|
"show": SubResource("Animation_dku72")
|
|
|
|
}
|
|
|
|
|
2024-11-02 09:27:50 -06:00
|
|
|
[sub_resource type="Animation" id="Animation_pk1s7"]
|
|
|
|
length = 0.001
|
|
|
|
tracks/0/type = "bezier"
|
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
|
|
|
tracks/0/path = NodePath(".:value")
|
|
|
|
tracks/0/interp = 1
|
|
|
|
tracks/0/loop_wrap = true
|
|
|
|
tracks/0/keys = {
|
|
|
|
"handle_modes": PackedInt32Array(0),
|
|
|
|
"points": PackedFloat32Array(0, -0.25, 0, 0.25, 0),
|
|
|
|
"times": PackedFloat32Array(0)
|
|
|
|
}
|
|
|
|
|
2024-11-01 19:50:02 -06:00
|
|
|
[sub_resource type="Animation" id="Animation_67gmp"]
|
|
|
|
resource_name = "fill"
|
|
|
|
length = 1.618
|
|
|
|
tracks/0/type = "bezier"
|
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
|
|
|
tracks/0/path = NodePath(".:value")
|
|
|
|
tracks/0/interp = 1
|
|
|
|
tracks/0/loop_wrap = true
|
|
|
|
tracks/0/keys = {
|
|
|
|
"handle_modes": PackedInt32Array(0, 0),
|
|
|
|
"points": PackedFloat32Array(0, -0.25, 0, 0.233333, 0.0884774, 1, -0.267469, -0.483539, 0.25, 0),
|
|
|
|
"times": PackedFloat32Array(0, 1.618)
|
|
|
|
}
|
|
|
|
|
2024-11-02 09:27:50 -06:00
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_coah5"]
|
|
|
|
_data = {
|
|
|
|
"RESET": SubResource("Animation_pk1s7"),
|
|
|
|
"fill": SubResource("Animation_67gmp")
|
|
|
|
}
|
|
|
|
|
|
|
|
[sub_resource type="Animation" id="Animation_noa0w"]
|
2024-11-01 19:50:02 -06:00
|
|
|
length = 0.001
|
|
|
|
tracks/0/type = "bezier"
|
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
2024-11-02 09:27:50 -06:00
|
|
|
tracks/0/path = NodePath("%CurveBar:value")
|
2024-11-01 19:50:02 -06:00
|
|
|
tracks/0/interp = 1
|
|
|
|
tracks/0/loop_wrap = true
|
|
|
|
tracks/0/keys = {
|
|
|
|
"handle_modes": PackedInt32Array(0),
|
|
|
|
"points": PackedFloat32Array(0, -0.25, 0, 0.25, 0),
|
|
|
|
"times": PackedFloat32Array(0)
|
|
|
|
}
|
|
|
|
|
|
|
|
[sub_resource type="Animation" id="Animation_uo6s7"]
|
|
|
|
resource_name = "fill"
|
|
|
|
length = 0.618
|
|
|
|
loop_mode = 2
|
|
|
|
tracks/0/type = "bezier"
|
|
|
|
tracks/0/imported = false
|
|
|
|
tracks/0/enabled = true
|
|
|
|
tracks/0/path = NodePath("%CurveBar:value")
|
|
|
|
tracks/0/interp = 1
|
|
|
|
tracks/0/loop_wrap = true
|
|
|
|
tracks/0/keys = {
|
|
|
|
"handle_modes": PackedInt32Array(0, 0),
|
|
|
|
"points": PackedFloat32Array(-1, -0.25, 0, 0.3, 0, 1, -0.3, 0, 0.25, 0),
|
|
|
|
"times": PackedFloat32Array(0, 0.618)
|
|
|
|
}
|
|
|
|
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_dicse"]
|
|
|
|
_data = {
|
|
|
|
"RESET": SubResource("Animation_noa0w"),
|
|
|
|
"fill": SubResource("Animation_uo6s7")
|
|
|
|
}
|
|
|
|
|
2024-10-20 20:27:08 -06:00
|
|
|
[node name="ShotSetup" type="Node3D"]
|
|
|
|
script = ExtResource("1_r6ei4")
|
2024-11-02 19:05:49 -06:00
|
|
|
driving_range = true
|
|
|
|
|
|
|
|
[node name="BallPoint" type="Node3D" parent="."]
|
|
|
|
unique_name_in_owner = true
|
2024-11-03 10:12:26 -07:00
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.2, 0)
|
2024-10-20 20:27:08 -06:00
|
|
|
|
2024-11-02 19:05:49 -06:00
|
|
|
[node name="PhysicsBall" parent="BallPoint" instance=ExtResource("2_1i5j5")]
|
|
|
|
unique_name_in_owner = true
|
|
|
|
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0)
|
|
|
|
freeze = true
|
|
|
|
contact_monitor = true
|
|
|
|
max_contacts_reported = 3
|
2024-10-20 20:27:08 -06:00
|
|
|
|
|
|
|
[node name="PlayerReference" type="MeshInstance3D" parent="."]
|
2024-11-01 16:33:13 -06:00
|
|
|
unique_name_in_owner = true
|
2024-11-01 19:50:02 -06:00
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -1.212, 1, 0)
|
2024-10-20 20:27:08 -06:00
|
|
|
mesh = SubResource("CapsuleMesh_5uovl")
|
|
|
|
|
|
|
|
[node name="Direction" type="Node3D" parent="."]
|
|
|
|
unique_name_in_owner = true
|
|
|
|
|
|
|
|
[node name="Pitch" type="Node3D" parent="Direction"]
|
|
|
|
unique_name_in_owner = true
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 0.907777, 0.419452, 0, -0.419452, 0.907777, 0, 0, 0)
|
|
|
|
|
|
|
|
[node name="Camera" type="Camera3D" parent="Direction/Pitch"]
|
|
|
|
unique_name_in_owner = true
|
|
|
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 6)
|
|
|
|
|
2024-11-02 19:05:49 -06:00
|
|
|
[node name="DriveRef" type="RayCast3D" parent="Direction"]
|
|
|
|
unique_name_in_owner = true
|
2024-11-03 10:12:26 -07:00
|
|
|
transform = Transform3D(-1, 6.18172e-08, -6.18172e-08, 0, 0.707107, 0.707107, 8.74228e-08, 0.707107, -0.707107, 0, 0.2, 0)
|
2024-11-02 19:05:49 -06:00
|
|
|
enabled = false
|
|
|
|
target_position = Vector3(0, 0, 1)
|
|
|
|
collision_mask = 0
|
|
|
|
collide_with_bodies = false
|
|
|
|
debug_shape_thickness = 4
|
|
|
|
|
2024-11-01 19:50:02 -06:00
|
|
|
[node name="Arrow" type="Node3D" parent="."]
|
|
|
|
unique_name_in_owner = true
|
2024-11-02 19:05:49 -06:00
|
|
|
transform = Transform3D(0.001, 0, 0, 0, 0.000707107, 0.000707107, 0, -0.000707107, 0.000707107, 0, 0.1, 0)
|
2024-11-01 16:33:13 -06:00
|
|
|
|
2024-11-01 19:50:02 -06:00
|
|
|
[node name="ArrowMesh" parent="Arrow" instance=ExtResource("2_s70wl")]
|
2024-11-02 19:05:49 -06:00
|
|
|
transform = Transform3D(0.2, 0, 0, 0, 0.4, 0, 0, 0, 0.2, 0, 1, 0)
|
2024-11-01 16:33:13 -06:00
|
|
|
loop_animation = 1
|
|
|
|
|
2024-11-02 09:49:14 -06:00
|
|
|
[node name="ArrowAnimation" type="AnimationPlayer" parent="Arrow"]
|
|
|
|
unique_name_in_owner = true
|
|
|
|
libraries = {
|
|
|
|
"": SubResource("AnimationLibrary_rw0cf")
|
|
|
|
}
|
|
|
|
autoplay = "show"
|
|
|
|
|
2024-10-20 20:27:08 -06:00
|
|
|
[node name="ShotUI" type="Control" parent="."]
|
|
|
|
layout_mode = 3
|
|
|
|
anchors_preset = 15
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
2024-11-01 16:33:13 -06:00
|
|
|
mouse_filter = 1
|
2024-10-20 20:27:08 -06:00
|
|
|
|
|
|
|
[node name="ShotGauges" type="Control" parent="ShotUI"]
|
|
|
|
layout_mode = 1
|
|
|
|
anchor_left = 0.4
|
|
|
|
anchor_top = 0.3
|
|
|
|
anchor_right = 0.6
|
2024-11-01 19:50:02 -06:00
|
|
|
anchor_bottom = 0.85
|
2024-10-20 20:27:08 -06:00
|
|
|
offset_left = -20.0
|
|
|
|
offset_top = -20.0
|
|
|
|
offset_right = 20.0
|
|
|
|
offset_bottom = 20.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
2024-11-01 16:33:13 -06:00
|
|
|
mouse_filter = 1
|
2024-10-20 20:27:08 -06:00
|
|
|
|
2024-11-01 19:50:02 -06:00
|
|
|
[node name="PowerGauge" type="Control" parent="ShotUI/ShotGauges"]
|
2024-10-20 20:27:08 -06:00
|
|
|
layout_mode = 1
|
2024-11-01 19:50:02 -06:00
|
|
|
anchor_left = 0.5
|
|
|
|
anchor_top = 0.382
|
|
|
|
anchor_right = 0.5
|
2024-10-20 20:27:08 -06:00
|
|
|
anchor_bottom = 1.0
|
|
|
|
grow_horizontal = 2
|
2024-11-01 19:50:02 -06:00
|
|
|
grow_vertical = 2
|
2024-11-01 16:33:13 -06:00
|
|
|
mouse_filter = 1
|
2024-10-20 20:27:08 -06:00
|
|
|
|
2024-11-01 19:50:02 -06:00
|
|
|
[node name="PowerBar" type="ProgressBar" parent="ShotUI/ShotGauges/PowerGauge"]
|
|
|
|
unique_name_in_owner = true
|
|
|
|
visible = false
|
|
|
|
custom_minimum_size = Vector2(30, 0)
|
|
|
|
layout_mode = 1
|
|
|
|
anchors_preset = 13
|
|
|
|
anchor_left = 0.5
|
|
|
|
anchor_right = 0.5
|
|
|
|
anchor_bottom = 1.0
|
|
|
|
offset_left = -2.0
|
|
|
|
offset_right = 2.0
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
|
|
|
mouse_filter = 1
|
|
|
|
max_value = 1.0
|
|
|
|
fill_mode = 2
|
|
|
|
|
|
|
|
[node name="PowerAnimation" type="AnimationPlayer" parent="ShotUI/ShotGauges/PowerGauge"]
|
|
|
|
unique_name_in_owner = true
|
|
|
|
root_node = NodePath("../PowerBar")
|
|
|
|
libraries = {
|
|
|
|
"": SubResource("AnimationLibrary_coah5")
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="CurveGauge" type="Control" parent="ShotUI/ShotGauges"]
|
|
|
|
layout_mode = 1
|
|
|
|
anchor_top = 0.25
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 0.25
|
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
|
|
|
mouse_filter = 1
|
|
|
|
|
|
|
|
[node name="CurveBar" type="ProgressBar" parent="ShotUI/ShotGauges/CurveGauge"]
|
|
|
|
unique_name_in_owner = true
|
|
|
|
visible = false
|
2024-10-20 20:27:08 -06:00
|
|
|
layout_mode = 1
|
|
|
|
anchors_preset = 15
|
|
|
|
anchor_right = 1.0
|
|
|
|
anchor_bottom = 1.0
|
2024-11-01 19:50:02 -06:00
|
|
|
offset_top = -13.5
|
|
|
|
offset_bottom = 13.5
|
2024-10-20 20:27:08 -06:00
|
|
|
grow_horizontal = 2
|
|
|
|
grow_vertical = 2
|
2024-11-01 19:50:02 -06:00
|
|
|
min_value = -1.0
|
|
|
|
max_value = 1.0
|
|
|
|
|
|
|
|
[node name="CurveAnimation" type="AnimationPlayer" parent="ShotUI/ShotGauges/CurveGauge"]
|
|
|
|
unique_name_in_owner = true
|
|
|
|
libraries = {
|
|
|
|
"": SubResource("AnimationLibrary_dicse")
|
|
|
|
}
|
|
|
|
|
|
|
|
[node name="GaugeFlasher" type="AnimationPlayer" parent="ShotUI/ShotGauges"]
|
|
|
|
unique_name_in_owner = true
|
2024-11-02 19:05:49 -06:00
|
|
|
|
|
|
|
[connection signal="body_entered" from="BallPoint/PhysicsBall" to="." method="_on_physics_ball_body_entered"]
|