2023-10-07 17:56:15 -07:00
|
|
|
[gd_scene load_steps=6 format=3 uid="uid://ikvaekbnft70"]
|
2023-10-07 17:43:33 -07:00
|
|
|
|
2023-10-07 17:56:15 -07:00
|
|
|
[ext_resource type="Texture2D" uid="uid://ttb1b3k07qu5" path="res://textures/world/boulder.svg" id="1_wuryf"]
|
2023-10-07 17:43:33 -07:00
|
|
|
|
|
|
|
[sub_resource type="GDScript" id="GDScript_d7f4g"]
|
|
|
|
script/source = "extends StaticBody2D
|
|
|
|
|
|
|
|
|
|
|
|
var type = \"resource\"
|
|
|
|
var resource_type = \"stone\"
|
|
|
|
"
|
|
|
|
|
|
|
|
[sub_resource type="CircleShape2D" id="CircleShape2D_fb1fv"]
|
|
|
|
radius = 64.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="stone" type="StaticBody2D"]
|
2023-10-07 18:33:55 -07:00
|
|
|
collision_layer = 3
|
2023-10-07 17:43:33 -07:00
|
|
|
script = SubResource("GDScript_d7f4g")
|
|
|
|
|
|
|
|
[node name="collision" type="CollisionShape2D" parent="."]
|
|
|
|
shape = SubResource("CircleShape2D_fb1fv")
|
|
|
|
|
|
|
|
[node name="body" type="Sprite2D" parent="."]
|
|
|
|
scale = Vector2(0.2, 0.2)
|
2023-10-07 17:56:15 -07:00
|
|
|
texture = ExtResource("1_wuryf")
|
|
|
|
|
|
|
|
[node name="animation" type="AnimationPlayer" parent="."]
|
|
|
|
libraries = {
|
|
|
|
"": SubResource("AnimationLibrary_mynaq")
|
|
|
|
}
|