-
Notifications
You must be signed in to change notification settings - Fork 2
/
Enemy.tscn
41 lines (32 loc) · 1.29 KB
/
Enemy.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
[gd_scene load_steps=10 format=2]
[ext_resource path="res://Sprites/potato5.png" type="Texture" id=1]
[ext_resource path="res://Fall_down.gd" type="Script" id=2]
[ext_resource path="res://Sprites/potato6.png" type="Texture" id=3]
[ext_resource path="res://Sprites/potato4.png" type="Texture" id=4]
[ext_resource path="res://Sprites/potato1.png" type="Texture" id=5]
[ext_resource path="res://Sprites/potato3.png" type="Texture" id=6]
[ext_resource path="res://Sprites/potato2.png" type="Texture" id=7]
[sub_resource type="CircleShape2D" id=3]
radius = 8.24621
[sub_resource type="SpriteFrames" id=2]
animations = [ {
"frames": [ ExtResource( 5 ), ExtResource( 7 ), ExtResource( 6 ), ExtResource( 4 ), ExtResource( 1 ), ExtResource( 3 ) ],
"loop": true,
"name": "Falling",
"speed": 5.0
} ]
[node name="enemy" type="Node2D"]
position = Vector2( 20, 3 )
__meta__ = {
"_edit_group_": true
}
[node name="rock" type="KinematicBody2D" parent="."]
script = ExtResource( 2 )
[node name="rock2" type="CollisionShape2D" parent="rock"]
shape = SubResource( 3 )
[node name="AnimatedSprite" type="AnimatedSprite" parent="rock"]
frames = SubResource( 2 )
animation = "Falling"
playing = true
[node name="Mobtimer" type="Timer" parent="."]
[connection signal="timeout" from="Mobtimer" to="." method="_on_Mobtimer_timeout"]