67 lines
2.2 KiB
Plaintext
67 lines
2.2 KiB
Plaintext
[gd_scene format=3 uid="uid://l0hl170iqkgx"]
|
|
|
|
[ext_resource type="Script" uid="uid://cuojjiwxidmwu" path="res://scenes/seat/seat.gd" id="1_pceab"]
|
|
[ext_resource type="PackedScene" uid="uid://bvpyqyftqhy45" path="res://scenes/character/character.tscn" id="3_dxmy0"]
|
|
[ext_resource type="Texture2D" uid="uid://belkmlrr588ki" path="res://assets/ui/seat_selector.png" id="3_wnjs1"]
|
|
|
|
[sub_resource type="Animation" id="Animation_wnjs1"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath(".:position")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [Vector2(0, 0)]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_dxmy0"]
|
|
resource_name = "idle"
|
|
length = 3.0
|
|
loop_mode = 1
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath(".:position")
|
|
tracks/0/interp = 2
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 1.5000001),
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
"update": 0,
|
|
"values": [Vector2(0, 0), Vector2(0, -30)]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_wnjs1"]
|
|
_data = {
|
|
&"RESET": SubResource("Animation_wnjs1"),
|
|
&"idle": SubResource("Animation_dxmy0")
|
|
}
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_rofvo"]
|
|
size = Vector2(128, 256)
|
|
|
|
[node name="Seat" type="Area2D" unique_id=1604639021]
|
|
script = ExtResource("1_pceab")
|
|
|
|
[node name="Character" parent="." unique_id=138741531 instance=ExtResource("3_dxmy0")]
|
|
|
|
[node name="Empty" type="Sprite2D" parent="." unique_id=357649392]
|
|
scale = Vector2(0.5, 0.5)
|
|
texture = ExtResource("3_wnjs1")
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="Empty" unique_id=288853041]
|
|
libraries/ = SubResource("AnimationLibrary_wnjs1")
|
|
autoplay = &"idle"
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="." unique_id=1054126207]
|
|
shape = SubResource("RectangleShape2D_rofvo")
|
|
|
|
[connection signal="input_event" from="." to="." method="_on_input_event"]
|
|
[connection signal="mouse_entered" from="." to="." method="_on_mouse_entered"]
|
|
[connection signal="mouse_exited" from="." to="." method="_on_mouse_exited"]
|