initial work on waterman's pole
This commit is contained in:
parent
ffc1935570
commit
1a57d92326
5 changed files with 162 additions and 6 deletions
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=19 format=3 uid="uid://cybm74xwbsivx"]
|
||||
[gd_scene load_steps=20 format=3 uid="uid://cybm74xwbsivx"]
|
||||
|
||||
[ext_resource type="Texture2D" uid="uid://3i17aqnrspma" path="res://assets/textures/player/canny.png" id="1_cp4br"]
|
||||
[ext_resource type="Script" path="res://objects/canny_cat.gd" id="1_twfq8"]
|
||||
|
@ -26,6 +26,16 @@ albedo_color = Color(0.916968, 0.113727, 0, 1)
|
|||
[sub_resource type="SphereShape3D" id="SphereShape3D_4o01j"]
|
||||
radius = 0.9
|
||||
|
||||
[sub_resource type="AudioStreamInteractive" id="AudioStreamInteractive_plnjn"]
|
||||
clip_count = 3
|
||||
clip_0/name = &""
|
||||
clip_0/auto_advance = 0
|
||||
clip_1/name = &""
|
||||
clip_1/auto_advance = 1
|
||||
clip_1/next_clip = 0
|
||||
clip_2/name = &""
|
||||
clip_2/auto_advance = 0
|
||||
|
||||
[sub_resource type="CylinderMesh" id="CylinderMesh_b16dl"]
|
||||
top_radius = 0.05
|
||||
bottom_radius = 0.05
|
||||
|
@ -101,6 +111,10 @@ bus = &"Sounds"
|
|||
stream = ExtResource("5_v6u4q")
|
||||
bus = &"Sounds"
|
||||
|
||||
[node name="ChargeCancel2" type="AudioStreamPlayer3D" parent="Sounds"]
|
||||
stream = SubResource("AudioStreamInteractive_plnjn")
|
||||
bus = &"Sounds"
|
||||
|
||||
[node name="Shoot" type="AudioStreamPlayer3D" parent="Sounds"]
|
||||
stream = ExtResource("6_a7neg")
|
||||
bus = &"Sounds"
|
||||
|
@ -143,6 +157,12 @@ to = NodePath("../Winning")
|
|||
event = &"goal_entered"
|
||||
delay_in_seconds = "0.0"
|
||||
|
||||
[node name="on PoleAttached" type="Node" parent="StateChart/Root"]
|
||||
script = ExtResource("7_epv8h")
|
||||
to = NodePath("../PoleSpinning")
|
||||
event = &"pole_attached"
|
||||
delay_in_seconds = "0.0"
|
||||
|
||||
[node name="Idle" type="Node" parent="StateChart/Root"]
|
||||
script = ExtResource("6_bu01i")
|
||||
|
||||
|
@ -179,15 +199,27 @@ delay_in_seconds = "0.0"
|
|||
[node name="Winning" type="Node" parent="StateChart/Root"]
|
||||
script = ExtResource("6_bu01i")
|
||||
|
||||
[node name="PoleSpinning" type="Node" parent="StateChart/Root"]
|
||||
script = ExtResource("6_bu01i")
|
||||
|
||||
[node name="Transition" type="Node" parent="StateChart/Root/PoleSpinning"]
|
||||
script = ExtResource("7_epv8h")
|
||||
to = NodePath("../../Moving")
|
||||
event = &"charge_pressed"
|
||||
delay_in_seconds = "0.0"
|
||||
|
||||
[connection signal="bounced" from="." to="Sounds/WallBounce" method="play"]
|
||||
[connection signal="charge_canceled" from="." to="Sounds/ChargeCancel" method="play"]
|
||||
[connection signal="shot" from="." to="Sounds/Shoot" method="play"]
|
||||
[connection signal="state_physics_processing" from="StateChart/Root/Idle" to="." method="_apply_gravity"]
|
||||
[connection signal="state_physics_processing" from="StateChart/Root/Moving" to="." method="_bounce_on_walls"]
|
||||
[connection signal="state_physics_processing" from="StateChart/Root/Moving" to="." method="_slow_to_stop"]
|
||||
[connection signal="state_physics_processing" from="StateChart/Root/Moving" to="." method="_apply_gravity"]
|
||||
[connection signal="state_physics_processing" from="StateChart/Root/Moving" to="." method="_slow_to_stop"]
|
||||
[connection signal="state_entered" from="StateChart/Root/Charging" to="." method="_start_charge"]
|
||||
[connection signal="state_entered" from="StateChart/Root/Charging" to="Sounds/ChargeStart" method="play"]
|
||||
[connection signal="state_exited" from="StateChart/Root/Charging" to="." method="_end_charge"]
|
||||
[connection signal="state_physics_processing" from="StateChart/Root/Charging" to="." method="_update_charge"]
|
||||
[connection signal="state_entered" from="StateChart/Root/Winning" to="." method="_start_winning"]
|
||||
[connection signal="state_entered" from="StateChart/Root/PoleSpinning" to="." method="_start_pole_spin"]
|
||||
[connection signal="state_exited" from="StateChart/Root/PoleSpinning" to="." method="_end_pole_spin"]
|
||||
[connection signal="state_physics_processing" from="StateChart/Root/PoleSpinning" to="." method="_process_pole_spin"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue