52 lines
1.4 KiB
Plaintext
Raw Permalink Normal View History

2023-10-07 17:56:15 -07:00
[gd_scene load_steps=6 format=3 uid="uid://c7ir6imnqx4py"]
2023-10-07 17:43:33 -07:00
[ext_resource type="Texture2D" uid="uid://i7fjjduk8b0c" path="res://textures/world/biome/forest/tree.svg" id="1_nvko3"]
2023-10-07 17:56:15 -07:00
[sub_resource type="GDScript" id="GDScript_si3d7"]
2023-10-07 17:43:33 -07:00
script/source = "extends StaticBody2D
var type = \"resource\"
var resource_type = \"wood\"
"
[sub_resource type="CircleShape2D" id="CircleShape2D_fb1fv"]
2023-10-09 18:31:23 -07:00
radius = 56.0
2023-10-07 17:56:15 -07:00
[sub_resource type="Animation" id="Animation_k7egg"]
resource_name = "hit"
length = 0.2
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("body:scale")
tracks/0/interp = 2
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 0.1, 0.2),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 0,
"values": [Vector2(0.2, 0.2), Vector2(0.18, 0.18), Vector2(0.2, 0.2)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_mynaq"]
_data = {
"hit": SubResource("Animation_k7egg")
}
2023-10-07 17:43:33 -07:00
[node name="tree" type="StaticBody2D"]
collision_layer = 3
2023-10-07 17:56:15 -07:00
script = SubResource("GDScript_si3d7")
2023-10-07 17:43:33 -07:00
[node name="collision" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_fb1fv")
[node name="body" type="Sprite2D" parent="."]
scale = Vector2(0.2, 0.2)
texture = ExtResource("1_nvko3")
2023-10-07 17:56:15 -07:00
[node name="animation" type="AnimationPlayer" parent="."]
libraries = {
"": SubResource("AnimationLibrary_mynaq")
}