32 lines
1018 B
Plaintext
32 lines
1018 B
Plaintext
[gd_scene load_steps=5 format=3 uid="uid://bp3c63qgkmi6o"]
|
|
|
|
[ext_resource type="Script" path="res://scripts/robot.gd" id="1_4eix8"]
|
|
[ext_resource type="Texture2D" uid="uid://b11jyrkhw7ebp" path="res://icon.svg" id="2_8ulyj"]
|
|
[ext_resource type="PackedScene" uid="uid://dyuqq8v1tckrv" path="res://objects/Wanderer.tscn" id="2_mhqh4"]
|
|
|
|
[sub_resource type="SpriteFrames" id="SpriteFrames_jlahh"]
|
|
animations = [{
|
|
"frames": [{
|
|
"duration": 1.0,
|
|
"texture": ExtResource("2_8ulyj")
|
|
}],
|
|
"loop": true,
|
|
"name": &"Walk",
|
|
"speed": 5.0
|
|
}]
|
|
|
|
[node name="Robot" type="Node2D"]
|
|
script = ExtResource("1_4eix8")
|
|
|
|
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
|
sprite_frames = SubResource("SpriteFrames_jlahh")
|
|
animation = &"Walk"
|
|
|
|
[node name="Planting" type="Timer" parent="."]
|
|
one_shot = true
|
|
|
|
[node name="Wanderer" parent="." node_paths=PackedStringArray("node_to_move") instance=ExtResource("2_mhqh4")]
|
|
node_to_move = NodePath("..")
|
|
|
|
[connection signal="timeout" from="Planting" to="." method="_on_planting_timeout"]
|