-
Notifications
You must be signed in to change notification settings - Fork 1
/
ant.tscn
80 lines (65 loc) · 2.96 KB
/
ant.tscn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
[gd_scene load_steps=12 format=3 uid="uid://10xcg3p30pal"]
[ext_resource type="Script" path="res://ant.gd" id="1_jww2m"]
[ext_resource type="Texture2D" uid="uid://b2v0smngboi4r" path="res://resources/sprites/ant_stationary.png" id="2_lsshl"]
[ext_resource type="Texture2D" uid="uid://des1x0jrmgr2y" path="res://resources/sprites/ant_walk1.png" id="3_jnfmw"]
[ext_resource type="Texture2D" uid="uid://c3jdojucncav6" path="res://resources/sprites/ant_walk2.png" id="4_u33sy"]
[ext_resource type="PackedScene" uid="uid://bb4tp5o4u5pkc" path="res://carried_item.tscn" id="5_cwwn3"]
[ext_resource type="AudioStream" uid="uid://thhm8xf0dr0x" path="res://resources/sounds/bushes 21.wav" id="5_e667s"]
[ext_resource type="AudioStream" uid="uid://yk3sg8lvcjuk" path="res://resources/sounds/zapsplat_catoon_bite_munch_single_001_56606.mp3" id="6_ijscd"]
[ext_resource type="AudioStream" uid="uid://bqbtujxpmvnfp" path="res://resources/sounds/wood bark friction 6.wav" id="7_v1lvq"]
[ext_resource type="AudioStream" uid="uid://dsl81if3mgvnr" path="res://resources/sounds/bushes 11.wav" id="8_cn6ex"]
[sub_resource type="SpriteFrames" id="SpriteFrames_xw4ci"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("2_lsshl")
}, {
"duration": 2.0,
"texture": ExtResource("3_jnfmw")
}, {
"duration": 2.0,
"texture": ExtResource("2_lsshl")
}, {
"duration": 2.0,
"texture": ExtResource("4_u33sy")
}],
"loop": true,
"name": &"harvester",
"speed": 24.0
}]
[sub_resource type="CircleShape2D" id="CircleShape2D_3jwfc"]
radius = 3.16228
[node name="Ant" type="CharacterBody2D"]
z_index = 50
collision_mask = 6
motion_mode = 1
wall_min_slide_angle = 0.0
script = ExtResource("1_jww2m")
[node name="CarriedItem" parent="." instance=ExtResource("5_cwwn3")]
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
rotation = 1.5708
scale = Vector2(0.128, 0.128)
sprite_frames = SubResource("SpriteFrames_xw4ci")
animation = &"harvester"
frame_progress = 0.997938
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource("CircleShape2D_3jwfc")
[node name="VisibleOnScreenNotifier2D" type="VisibleOnScreenNotifier2D" parent="."]
visible = false
scale = Vector2(8, 8)
[node name="LifespanTimer" type="Timer" parent="."]
[node name="FoodPickupSound" type="AudioStreamPlayer" parent="."]
stream = ExtResource("5_e667s")
volume_db = -15.0
[node name="FoodDepositSound" type="AudioStreamPlayer" parent="."]
stream = ExtResource("6_ijscd")
volume_db = -13.0
[node name="StickPickupSound" type="AudioStreamPlayer" parent="."]
stream = ExtResource("7_v1lvq")
volume_db = -15.0
[node name="StickDepositSound" type="AudioStreamPlayer" parent="."]
stream = ExtResource("8_cn6ex")
volume_db = -15.0
[node name="CarriedItem2" parent="." instance=ExtResource("5_cwwn3")]
[connection signal="screen_exited" from="VisibleOnScreenNotifier2D" to="." method="_on_visible_on_screen_notifier_2d_screen_exited"]
[connection signal="timeout" from="LifespanTimer" to="." method="_on_lifespan_timer_timeout"]