134 lines
3.7 KiB
Plaintext
134 lines
3.7 KiB
Plaintext
[gd_scene load_steps=11 format=4]
|
|
|
|
[ext_resource type="Script" path="res://Scripts/Entities/Entity.cs" id="1"]
|
|
[ext_resource type="Texture2D" path="res://Sprites/Characters/ch2dw chars.png" id="2"]
|
|
|
|
[sub_resource type="Animation" id="Animation_5er35"]
|
|
resource_name = "Idle"
|
|
length = 0.0010000000474974513
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Sprite:region_rect")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [Rect2(140, 490, 40, 50)]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_yb1wb"]
|
|
length = 0.0010000000474974513
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Sprite:region_rect")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [Rect2(180, 490, 40, 50)]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_241sa"]
|
|
resource_name = "Sleep"
|
|
length = 0.0010000000474974513
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Sprite:region_rect")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 0,
|
|
"values": [Rect2(140, 440, 40, 50)]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_h1cdq"]
|
|
resource_name = "Talk"
|
|
length = 0.20000000298023224
|
|
loop_mode = 1
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Sprite:region_rect")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.1),
|
|
"transitions": PackedFloat32Array(1, 1),
|
|
"update": 1,
|
|
"values": [Rect2(300, 490, 40, 50), Rect2(260, 490, 40, 50)]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_n1nox"]
|
|
resource_name = "Wake"
|
|
length = 0.5
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Sprite:region_rect")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.2, 0.3),
|
|
"transitions": PackedFloat32Array(1, 1, 1),
|
|
"update": 1,
|
|
"values": [Rect2(180, 440, 40, 50), Rect2(220, 440, 40, 50), Rect2(220, 490, 40, 50)]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_wj447"]
|
|
_data = {
|
|
&"Idle": SubResource("Animation_5er35"),
|
|
&"RESET": SubResource("Animation_yb1wb"),
|
|
&"Sleep": SubResource("Animation_241sa"),
|
|
&"Talk": SubResource("Animation_h1cdq"),
|
|
&"Wake": SubResource("Animation_n1nox")
|
|
}
|
|
|
|
[sub_resource type="RectangleShape2D" id="RectangleShape2D_ut4oy"]
|
|
size = Vector2(12, 6)
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_nauhb"]
|
|
radius = 14.0
|
|
|
|
[node name="KanakoPC" type="CharacterBody2D" node_paths=PackedStringArray("extras", "anim", "sprite", "collider", "trigger")]
|
|
script = ExtResource("1")
|
|
id = 110
|
|
singleDirection = true
|
|
extras = []
|
|
anim = NodePath("AnimationPlayer")
|
|
sprite = NodePath("Sprite")
|
|
collider = NodePath("CollisionShape2D")
|
|
trigger = NodePath("Trigger")
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
libraries = {
|
|
&"": SubResource("AnimationLibrary_wj447")
|
|
}
|
|
autoplay = "Sleep"
|
|
next/Wake = &"Idle"
|
|
|
|
[node name="Sprite" type="Sprite2D" parent="."]
|
|
texture = ExtResource("2")
|
|
offset = Vector2(0, -25)
|
|
region_enabled = true
|
|
region_rect = Rect2(180, 490, 40, 50)
|
|
region_filter_clip_enabled = true
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
position = Vector2(0, -3)
|
|
shape = SubResource("RectangleShape2D_ut4oy")
|
|
|
|
[node name="Trigger" type="Area2D" parent="."]
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="Trigger"]
|
|
position = Vector2(1, -10)
|
|
shape = SubResource("CircleShape2D_nauhb")
|