150 lines
6 KiB
Text
150 lines
6 KiB
Text
[gd_scene load_steps=29 format=2]
|
|
|
|
[ext_resource path="res://game/customer/GenericCustomer.gd" type="Script" id=1]
|
|
[ext_resource path="res://art_assets/customer/customer.gltf" type="PackedScene" id=2]
|
|
[ext_resource path="res://game/customer/CustomerClick.gd" type="Script" id=3]
|
|
[ext_resource path="res://game/customer/speech_bubble/SpatialSpeechBubble.tscn" type="PackedScene" id=4]
|
|
|
|
[sub_resource type="CapsuleShape" id=2]
|
|
radius = 0.52163
|
|
|
|
[sub_resource type="BoxShape" id=3]
|
|
extents = Vector3( 0.543002, 0.57038, 1.05343 )
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id=4]
|
|
animation = "customerDrinkExit"
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id=5]
|
|
animation = "customerDrinkIdle"
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id=6]
|
|
animation = "customerDrinkSettle"
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id=7]
|
|
animation = "customerOrdering"
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id=8]
|
|
animation = "customerPickup"
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id=9]
|
|
animation = "customerWaitRegister"
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id=10]
|
|
animation = "customerWaitTable"
|
|
|
|
[sub_resource type="AnimationNodeAnimation" id=11]
|
|
animation = "customerWalk"
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id=12]
|
|
xfade_time = 1.0
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id=13]
|
|
xfade_time = 1.0
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id=14]
|
|
xfade_time = 1.0
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id=15]
|
|
xfade_time = 1.0
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id=16]
|
|
xfade_time = 1.0
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id=17]
|
|
xfade_time = 1.0
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id=18]
|
|
xfade_time = 1.0
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id=19]
|
|
xfade_time = 1.0
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id=20]
|
|
xfade_time = 0.5
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id=21]
|
|
xfade_time = 0.5
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id=22]
|
|
xfade_time = 0.5
|
|
|
|
[sub_resource type="AnimationNodeStateMachineTransition" id=23]
|
|
xfade_time = 0.2
|
|
|
|
[sub_resource type="AnimationNodeStateMachine" id=24]
|
|
states/customerDrinkExit/node = SubResource( 4 )
|
|
states/customerDrinkExit/position = Vector2( 592.667, -74.5532 )
|
|
states/customerDrinkIdle/node = SubResource( 5 )
|
|
states/customerDrinkIdle/position = Vector2( 346, -75.8371 )
|
|
states/customerDrinkSettle/node = SubResource( 6 )
|
|
states/customerDrinkSettle/position = Vector2( 86.1975, -76.2322 )
|
|
states/customerOrdering/node = SubResource( 7 )
|
|
states/customerOrdering/position = Vector2( 459.93, 202.131 )
|
|
states/customerPickup/node = SubResource( 8 )
|
|
states/customerPickup/position = Vector2( -237.902, 83.5348 )
|
|
states/wait_register/node = SubResource( 9 )
|
|
states/wait_register/position = Vector2( 454.555, 84.1838 )
|
|
states/wait_table/node = SubResource( 10 )
|
|
states/wait_table/position = Vector2( 85.8148, 208.667 )
|
|
states/walking/node = SubResource( 11 )
|
|
states/walking/position = Vector2( 86.8354, 84.1235 )
|
|
transitions = [ "walking", "wait_register", SubResource( 12 ), "walking", "wait_table", SubResource( 13 ), "wait_table", "walking", SubResource( 14 ), "wait_register", "walking", SubResource( 15 ), "customerDrinkSettle", "customerDrinkIdle", SubResource( 16 ), "customerDrinkIdle", "customerDrinkExit", SubResource( 17 ), "customerDrinkExit", "walking", SubResource( 18 ), "walking", "customerDrinkSettle", SubResource( 19 ), "wait_register", "customerOrdering", SubResource( 20 ), "customerOrdering", "walking", SubResource( 21 ), "walking", "customerPickup", SubResource( 22 ), "customerPickup", "walking", SubResource( 23 ) ]
|
|
start_node = "wait_register"
|
|
graph_offset = Vector2( -287.902, 17.131 )
|
|
|
|
[sub_resource type="AnimationNodeStateMachinePlayback" id=25]
|
|
|
|
[node name="customer" type="KinematicBody" groups=[
|
|
"customer",
|
|
]]
|
|
script = ExtResource( 1 )
|
|
max_speed = 4.0
|
|
|
|
[node name="customer" parent="." instance=ExtResource( 2 )]
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -0.5, 0 )
|
|
|
|
[node name="CollisionShape" type="CollisionShape" parent="."]
|
|
transform = Transform( 1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0.265404, 0 )
|
|
shape = SubResource( 2 )
|
|
disabled = true
|
|
|
|
[node name="MaxWaitingTime" type="Timer" parent="."]
|
|
wait_time = 200.0
|
|
one_shot = true
|
|
|
|
[node name="Selection and stuff" type="Spatial" parent="."]
|
|
script = ExtResource( 3 )
|
|
|
|
[node name="AreaUserCustomerInteraction" type="Area" parent="Selection and stuff"]
|
|
|
|
[node name="CollisionShape" type="CollisionShape" parent="Selection and stuff/AreaUserCustomerInteraction"]
|
|
transform = Transform( 1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0.321759, 0 )
|
|
shape = SubResource( 3 )
|
|
|
|
[node name="SpeechBubble" parent="." instance=ExtResource( 4 )]
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.68207, 0 )
|
|
|
|
[node name="AnimationTree" type="AnimationTree" parent="."]
|
|
tree_root = SubResource( 24 )
|
|
anim_player = NodePath("../customer/AnimationPlayer")
|
|
active = true
|
|
parameters/playback = SubResource( 25 )
|
|
|
|
[node name="AnimationTimers" type="Spatial" parent="."]
|
|
|
|
[node name="PickupFoodTimer" type="Timer" parent="AnimationTimers"]
|
|
wait_time = 2.0
|
|
one_shot = true
|
|
|
|
[node name="PlaceOrderTimer" type="Timer" parent="AnimationTimers"]
|
|
wait_time = 2.0
|
|
one_shot = true
|
|
|
|
[node name="Icon" type="Spatial" parent="."]
|
|
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.25, 0 )
|
|
|
|
[connection signal="timeout" from="MaxWaitingTime" to="." method="_on_MaxWaitingTime_timeout"]
|
|
[connection signal="input_event" from="Selection and stuff/AreaUserCustomerInteraction" to="Selection and stuff" method="_on_AreaUserCustomerInteraction_input_event"]
|
|
[connection signal="mouse_entered" from="Selection and stuff/AreaUserCustomerInteraction" to="Selection and stuff" method="_on_AreaUserCustomerInteraction_mouse_entered"]
|
|
[connection signal="mouse_exited" from="Selection and stuff/AreaUserCustomerInteraction" to="Selection and stuff" method="_on_AreaUserCustomerInteraction_mouse_exited"]
|
|
[connection signal="timeout" from="AnimationTimers/PlaceOrderTimer" to="." method="_on_PlaceOrderTimer_timeout"]
|