-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEnemyFrog.tscn
46 lines (36 loc) · 1.4 KB
/
EnemyFrog.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
[gd_scene load_steps=8 format=2]
[ext_resource path="res://sprites/frog2.png" type="Texture" id=1]
[ext_resource path="res://sprites/frog1.png" type="Texture" id=2]
[ext_resource path="res://EnemyFrog.gd" type="Script" id=3]
[ext_resource path="res://sprites/frog_laug2.png" type="Texture" id=4]
[ext_resource path="res://sprites/frog_laug1.png" type="Texture" id=5]
[sub_resource type="CircleShape2D" id=1]
[sub_resource type="SpriteFrames" id=2]
animations = [ {
"frames": [ ExtResource( 2 ), ExtResource( 1 ) ],
"loop": true,
"name": "default",
"speed": 5.0
}, {
"frames": [ ExtResource( 5 ), ExtResource( 4 ) ],
"loop": true,
"name": "laugh",
"speed": 10.0
} ]
[node name="EnemyFrog" type="KinematicBody2D"]
script = ExtResource( 3 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( 0, 3 )
scale = Vector2( 0.5, 0.5 )
shape = SubResource( 1 )
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
frames = SubResource( 2 )
[node name="JumpTimer" type="Timer" parent="."]
wait_time = 0.4
autostart = true
[node name="StunTimer" type="Timer" parent="."]
wait_time = 3.0
[node name="WaitTimer" type="Timer" parent="."]
[connection signal="timeout" from="JumpTimer" to="." method="_on_JumpTimer_timeout"]
[connection signal="timeout" from="StunTimer" to="." method="_on_StunTimer_timeout"]
[connection signal="timeout" from="WaitTimer" to="." method="_on_WaitTimer_timeout"]