59 lines
1.4 KiB
Plaintext
59 lines
1.4 KiB
Plaintext
[gd_scene load_steps=9 format=3 uid="uid://mhvl6s2ugm6y"]
|
|
|
|
[ext_resource type="Texture2D" uid="uid://b7rtfcem8vbxx" path="res://Effects/GrassEffect.png" id="1"]
|
|
[ext_resource type="Script" path="res://Effects/Effect.gd" id="2"]
|
|
|
|
[sub_resource type="AtlasTexture" id="1"]
|
|
atlas = ExtResource("1")
|
|
region = Rect2(0, 0, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="2"]
|
|
atlas = ExtResource("1")
|
|
region = Rect2(32, 0, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="3"]
|
|
atlas = ExtResource("1")
|
|
region = Rect2(64, 0, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="4"]
|
|
atlas = ExtResource("1")
|
|
region = Rect2(96, 0, 32, 32)
|
|
|
|
[sub_resource type="AtlasTexture" id="5"]
|
|
atlas = ExtResource("1")
|
|
region = Rect2(128, 0, 32, 32)
|
|
|
|
[sub_resource type="SpriteFrames" id="6"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": SubResource("1")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("2")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("3")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("4")
|
|
}, {
|
|
"duration": 1.0,
|
|
"texture": SubResource("5")
|
|
}],
|
|
"loop": false,
|
|
"name": &"Animate",
|
|
"speed": 15.0
|
|
}]
|
|
|
|
[node name="GrassEffect" type="AnimatedSprite2D"]
|
|
sprite_frames = SubResource("6")
|
|
animation = &"Animate"
|
|
frame = 1
|
|
frame_progress = 0.606911
|
|
centered = false
|
|
offset = Vector2(-8, -8)
|
|
script = ExtResource("2")
|
|
|
|
[connection signal="animation_finished" from="." to="." method="_on_animation_finished"]
|