temporary commit
This commit is contained in:
parent
8165cda61c
commit
84b689b819
14 changed files with 167 additions and 40 deletions
|
@ -150,77 +150,91 @@ initial_expression_properties = {
|
|||
|
||||
[node name="Root" type="Node" parent="StateChart"]
|
||||
script = ExtResource("5_ox6hb")
|
||||
initial_state = NodePath("Active")
|
||||
|
||||
[node name="Active" type="Node" parent="StateChart/Root"]
|
||||
script = ExtResource("5_ox6hb")
|
||||
initial_state = NodePath("Moving")
|
||||
|
||||
[node name="on GoalEntered" type="Node" parent="StateChart/Root"]
|
||||
[node name="on GoalEntered" type="Node" parent="StateChart/Root/Active"]
|
||||
script = ExtResource("7_epv8h")
|
||||
to = NodePath("../Winning")
|
||||
to = NodePath("../../Inactive/Winning")
|
||||
event = &"goal_entered"
|
||||
delay_in_seconds = "0.0"
|
||||
|
||||
[node name="on PoleAttached" type="Node" parent="StateChart/Root"]
|
||||
[node name="on Died" type="Node" parent="StateChart/Root/Active"]
|
||||
script = ExtResource("7_epv8h")
|
||||
to = NodePath("../../Inactive/Winning")
|
||||
event = &"goal_entered"
|
||||
delay_in_seconds = "0.0"
|
||||
|
||||
[node name="on PoleAttached" type="Node" parent="StateChart/Root/Active"]
|
||||
script = ExtResource("7_epv8h")
|
||||
to = NodePath("../PoleSpinning")
|
||||
event = &"pole_attached"
|
||||
delay_in_seconds = "0.0"
|
||||
|
||||
[node name="Idle" type="Node" parent="StateChart/Root"]
|
||||
[node name="Idle" type="Node" parent="StateChart/Root/Active"]
|
||||
script = ExtResource("6_bu01i")
|
||||
|
||||
[node name="on ChargePressed" type="Node" parent="StateChart/Root/Idle"]
|
||||
[node name="on ChargePressed" type="Node" parent="StateChart/Root/Active/Idle"]
|
||||
script = ExtResource("7_epv8h")
|
||||
to = NodePath("../../Charging")
|
||||
event = &"charge_pressed"
|
||||
delay_in_seconds = "0.0"
|
||||
|
||||
[node name="when Moving" type="Node" parent="StateChart/Root/Idle"]
|
||||
[node name="when Moving" type="Node" parent="StateChart/Root/Active/Idle"]
|
||||
script = ExtResource("7_epv8h")
|
||||
to = NodePath("../../Moving")
|
||||
guard = SubResource("Resource_ej40h")
|
||||
delay_in_seconds = "0.0"
|
||||
|
||||
[node name="Moving" type="Node" parent="StateChart/Root"]
|
||||
[node name="Moving" type="Node" parent="StateChart/Root/Active"]
|
||||
script = ExtResource("6_bu01i")
|
||||
|
||||
[node name="when Stopped" type="Node" parent="StateChart/Root/Moving"]
|
||||
[node name="when Stopped" type="Node" parent="StateChart/Root/Active/Moving"]
|
||||
script = ExtResource("7_epv8h")
|
||||
to = NodePath("../../Idle")
|
||||
guard = SubResource("Resource_637i1")
|
||||
delay_in_seconds = "0.0"
|
||||
|
||||
[node name="Charging" type="Node" parent="StateChart/Root"]
|
||||
[node name="Charging" type="Node" parent="StateChart/Root/Active"]
|
||||
script = ExtResource("6_bu01i")
|
||||
|
||||
[node name="on ChargeReleased" type="Node" parent="StateChart/Root/Charging"]
|
||||
[node name="on ChargeReleased" type="Node" parent="StateChart/Root/Active/Charging"]
|
||||
script = ExtResource("7_epv8h")
|
||||
to = NodePath("../../Moving")
|
||||
event = &"charge_released"
|
||||
delay_in_seconds = "0.0"
|
||||
|
||||
[node name="Winning" type="Node" parent="StateChart/Root"]
|
||||
[node name="PoleSpinning" type="Node" parent="StateChart/Root/Active"]
|
||||
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"]
|
||||
[node name="Transition" type="Node" parent="StateChart/Root/Active/PoleSpinning"]
|
||||
script = ExtResource("7_epv8h")
|
||||
to = NodePath("../../Moving")
|
||||
event = &"charge_pressed"
|
||||
delay_in_seconds = "0.0"
|
||||
|
||||
[node name="Inactive" type="Node" parent="StateChart/Root"]
|
||||
script = ExtResource("5_ox6hb")
|
||||
initial_state = NodePath("Winning")
|
||||
|
||||
[node name="Winning" type="Node" parent="StateChart/Root/Inactive"]
|
||||
script = ExtResource("6_bu01i")
|
||||
|
||||
[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="_apply_gravity"]
|
||||
[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="_bounce_on_walls"]
|
||||
[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"]
|
||||
[connection signal="state_physics_processing" from="StateChart/Root/Active/Idle" to="." method="_apply_gravity"]
|
||||
[connection signal="state_physics_processing" from="StateChart/Root/Active/Moving" to="." method="_slow_to_stop"]
|
||||
[connection signal="state_physics_processing" from="StateChart/Root/Active/Moving" to="." method="_apply_gravity"]
|
||||
[connection signal="state_physics_processing" from="StateChart/Root/Active/Moving" to="." method="_bounce_on_walls"]
|
||||
[connection signal="state_entered" from="StateChart/Root/Active/Charging" to="." method="_start_charge"]
|
||||
[connection signal="state_entered" from="StateChart/Root/Active/Charging" to="Sounds/ChargeStart" method="play"]
|
||||
[connection signal="state_exited" from="StateChart/Root/Active/Charging" to="." method="_end_charge"]
|
||||
[connection signal="state_physics_processing" from="StateChart/Root/Active/Charging" to="." method="_update_charge"]
|
||||
[connection signal="state_entered" from="StateChart/Root/Active/PoleSpinning" to="." method="_start_pole_spin"]
|
||||
[connection signal="state_exited" from="StateChart/Root/Active/PoleSpinning" to="." method="_end_pole_spin"]
|
||||
[connection signal="state_physics_processing" from="StateChart/Root/Active/PoleSpinning" to="." method="_process_pole_spin"]
|
||||
[connection signal="state_entered" from="StateChart/Root/Inactive/Winning" to="." method="_start_winning"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue