69 lines
2.1 KiB
Plaintext
69 lines
2.1 KiB
Plaintext
[gd_scene load_steps=8 format=3 uid="uid://cr372ml2gqjrw"]
|
|
|
|
[ext_resource type="Script" uid="uid://b7e4wue7oegre" path="res://_player/ghost/ghost.gd" id="1_4fcft"]
|
|
[ext_resource type="Texture2D" uid="uid://blmcygf06lxay" path="res://_asset/brackeys_platformer_assets/sprites/coin.png" id="1_jujku"]
|
|
[ext_resource type="Script" uid="uid://bvlda3myvuoy3" path="res://_player/ghost/ghost_locomotion.gd" id="2_23gor"]
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_xwnqk"]
|
|
radius = 6.0
|
|
|
|
[sub_resource type="Animation" id="Animation_23gor"]
|
|
length = 0.001
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Sprite2D:frame")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0),
|
|
"transitions": PackedFloat32Array(1),
|
|
"update": 1,
|
|
"values": [0]
|
|
}
|
|
|
|
[sub_resource type="Animation" id="Animation_jujku"]
|
|
resource_name = "idle"
|
|
length = 1.5000125
|
|
loop_mode = 1
|
|
step = 0.125
|
|
tracks/0/type = "value"
|
|
tracks/0/imported = false
|
|
tracks/0/enabled = true
|
|
tracks/0/path = NodePath("Sprite2D:frame")
|
|
tracks/0/interp = 1
|
|
tracks/0/loop_wrap = true
|
|
tracks/0/keys = {
|
|
"times": PackedFloat32Array(0, 0.125, 0.25, 0.375, 0.5, 0.625, 0.75, 0.875, 1, 1.125, 1.25, 1.375),
|
|
"transitions": PackedFloat32Array(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1),
|
|
"update": 1,
|
|
"values": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]
|
|
}
|
|
|
|
[sub_resource type="AnimationLibrary" id="AnimationLibrary_s1rgc"]
|
|
_data = {
|
|
&"RESET": SubResource("Animation_23gor"),
|
|
&"idle": SubResource("Animation_jujku")
|
|
}
|
|
|
|
[node name="Ghost" type="CharacterBody2D"]
|
|
texture_filter = 1
|
|
script = ExtResource("1_4fcft")
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
shape = SubResource("CircleShape2D_xwnqk")
|
|
|
|
[node name="Sprite2D" type="Sprite2D" parent="."]
|
|
texture = ExtResource("1_jujku")
|
|
hframes = 12
|
|
|
|
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
|
libraries = {
|
|
&"": SubResource("AnimationLibrary_s1rgc")
|
|
}
|
|
|
|
[node name="GhostLocomotion" type="Node" parent="."]
|
|
script = ExtResource("2_23gor")
|
|
should_post_process = true
|
|
should_apply_gravity = false
|