65 lines
2.3 KiB
Plaintext
65 lines
2.3 KiB
Plaintext
[gd_scene load_steps=12 format=2]
|
|
|
|
[ext_resource path="res://characters/pests/slug_frame0005.png" type="Texture" id=1]
|
|
[ext_resource path="res://characters/pests/slug_frame0004.png" type="Texture" id=2]
|
|
[ext_resource path="res://characters/pests/slug_frame0003.png" type="Texture" id=3]
|
|
[ext_resource path="res://characters/pests/slug_frame0000.png" type="Texture" id=4]
|
|
[ext_resource path="res://characters/pests/slug_frame0002.png" type="Texture" id=5]
|
|
[ext_resource path="res://characters/pests/slug_frame0001.png" type="Texture" id=6]
|
|
[ext_resource path="res://characters/pests/Slug.gd" type="Script" id=7]
|
|
[ext_resource path="res://sfx/slimy_walk.wav" type="AudioStream" id=8]
|
|
[ext_resource path="res://sfx/slugsplode.wav" type="AudioStream" id=9]
|
|
|
|
[sub_resource type="SpriteFrames" id=1]
|
|
animations = [ {
|
|
"frames": [ ExtResource( 4 ), ExtResource( 6 ), ExtResource( 5 ), ExtResource( 3 ), ExtResource( 2 ), ExtResource( 1 ), ExtResource( 3 ), ExtResource( 5 ), ExtResource( 6 ), ExtResource( 4 ) ],
|
|
"loop": true,
|
|
"name": "crawl",
|
|
"speed": 7.0
|
|
}, {
|
|
"frames": [ ExtResource( 4 ) ],
|
|
"loop": true,
|
|
"name": "still",
|
|
"speed": 5.0
|
|
} ]
|
|
|
|
[sub_resource type="CapsuleShape2D" id=2]
|
|
radius = 6.0
|
|
height = 40.0
|
|
|
|
[node name="Slug" type="KinematicBody2D" groups=["interactable"]]
|
|
collision_layer = 2
|
|
collision_mask = 0
|
|
script = ExtResource( 7 )
|
|
|
|
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
|
|
position = Vector2( 0, -19 )
|
|
scale = Vector2( 0.5, 0.5 )
|
|
frames = SubResource( 1 )
|
|
animation = "crawl"
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
position = Vector2( 1, -7 )
|
|
rotation = 1.5708
|
|
shape = SubResource( 2 )
|
|
|
|
[node name="NavigationAgent2D" type="NavigationAgent2D" parent="."]
|
|
path_desired_distance = 8.0
|
|
target_desired_distance = 12.0
|
|
path_max_distance = 64.0
|
|
|
|
[node name="SlimyWalkSfx" type="AudioStreamPlayer2D" parent="."]
|
|
stream = ExtResource( 8 )
|
|
|
|
[node name="RenavigateTimer" type="Timer" parent="."]
|
|
autostart = true
|
|
|
|
[node name="ExplodeSfx" type="AudioStreamPlayer2D" parent="."]
|
|
stream = ExtResource( 9 )
|
|
|
|
[node name="EatingTimer" type="Timer" parent="."]
|
|
one_shot = true
|
|
|
|
[connection signal="target_reached" from="NavigationAgent2D" to="." method="_on_NavigationAgent2D_target_reached"]
|
|
[connection signal="timeout" from="RenavigateTimer" to="." method="_on_RenavigateTimer_timeout"]
|