-
Notifications
You must be signed in to change notification settings - Fork 4
/
Enemy.tscn
89 lines (81 loc) · 4.77 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
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
81
82
83
84
85
86
87
88
89
[gd_scene load_steps=41 format=2]
[ext_resource path="res://Scripts/Enemy.gd" type="Script" id=1]
[ext_resource path="res://Sprites/zombies/male/Dead (1).png" type="Texture" id=2]
[ext_resource path="res://Sprites/zombies/male/Dead (2).png" type="Texture" id=3]
[ext_resource path="res://Sprites/zombies/male/Dead (3).png" type="Texture" id=4]
[ext_resource path="res://Sprites/zombies/male/Dead (4).png" type="Texture" id=5]
[ext_resource path="res://Sprites/zombies/male/Dead (5).png" type="Texture" id=6]
[ext_resource path="res://Sprites/zombies/male/Dead (6).png" type="Texture" id=7]
[ext_resource path="res://Sprites/zombies/male/Dead (7).png" type="Texture" id=8]
[ext_resource path="res://Sprites/zombies/male/Dead (8).png" type="Texture" id=9]
[ext_resource path="res://Sprites/zombies/male/Dead (9).png" type="Texture" id=10]
[ext_resource path="res://Sprites/zombies/male/Dead (10).png" type="Texture" id=11]
[ext_resource path="res://Sprites/zombies/male/Dead (11).png" type="Texture" id=12]
[ext_resource path="res://Sprites/zombies/male/Dead (12).png" type="Texture" id=13]
[ext_resource path="res://Sprites/zombies/male/Idle (1).png" type="Texture" id=14]
[ext_resource path="res://Sprites/zombies/male/Idle (2).png" type="Texture" id=15]
[ext_resource path="res://Sprites/zombies/male/Idle (3).png" type="Texture" id=16]
[ext_resource path="res://Sprites/zombies/male/Idle (4).png" type="Texture" id=17]
[ext_resource path="res://Sprites/zombies/male/Idle (5).png" type="Texture" id=18]
[ext_resource path="res://Sprites/zombies/male/Idle (6).png" type="Texture" id=19]
[ext_resource path="res://Sprites/zombies/male/Idle (7).png" type="Texture" id=20]
[ext_resource path="res://Sprites/zombies/male/Idle (8).png" type="Texture" id=21]
[ext_resource path="res://Sprites/zombies/male/Idle (9).png" type="Texture" id=22]
[ext_resource path="res://Sprites/zombies/male/Idle (10).png" type="Texture" id=23]
[ext_resource path="res://Sprites/zombies/male/Idle (11).png" type="Texture" id=24]
[ext_resource path="res://Sprites/zombies/male/Idle (12).png" type="Texture" id=25]
[ext_resource path="res://Sprites/zombies/male/Idle (13).png" type="Texture" id=26]
[ext_resource path="res://Sprites/zombies/male/Idle (14).png" type="Texture" id=27]
[ext_resource path="res://Sprites/zombies/male/Idle (15).png" type="Texture" id=28]
[ext_resource path="res://Sprites/zombies/male/Walk (1).png" type="Texture" id=29]
[ext_resource path="res://Sprites/zombies/male/Walk (2).png" type="Texture" id=30]
[ext_resource path="res://Sprites/zombies/male/Walk (3).png" type="Texture" id=31]
[ext_resource path="res://Sprites/zombies/male/Walk (4).png" type="Texture" id=32]
[ext_resource path="res://Sprites/zombies/male/Walk (5).png" type="Texture" id=33]
[ext_resource path="res://Sprites/zombies/male/Walk (6).png" type="Texture" id=34]
[ext_resource path="res://Sprites/zombies/male/Walk (7).png" type="Texture" id=35]
[ext_resource path="res://Sprites/zombies/male/Walk (8).png" type="Texture" id=36]
[ext_resource path="res://Sprites/zombies/male/Walk (9).png" type="Texture" id=37]
[ext_resource path="res://Sprites/zombies/male/Walk (10).png" type="Texture" id=38]
[sub_resource type="SpriteFrames" id=1]
animations = [ {
"frames": [ ExtResource( 2 ), ExtResource( 3 ), ExtResource( 4 ), ExtResource( 5 ), ExtResource( 6 ), ExtResource( 7 ), ExtResource( 8 ), ExtResource( 9 ), ExtResource( 10 ), ExtResource( 11 ), ExtResource( 12 ), ExtResource( 13 ) ],
"loop": false,
"name": "Dead",
"speed": 5.0
}, {
"frames": [ ExtResource( 14 ), ExtResource( 15 ), ExtResource( 16 ), ExtResource( 17 ), ExtResource( 18 ), ExtResource( 19 ), ExtResource( 20 ), ExtResource( 21 ), ExtResource( 22 ), ExtResource( 23 ), ExtResource( 24 ), ExtResource( 25 ), ExtResource( 26 ), ExtResource( 27 ), ExtResource( 28 ) ],
"loop": true,
"name": "Idle",
"speed": 5.0
}, {
"frames": [ ExtResource( 29 ), ExtResource( 30 ), ExtResource( 31 ), ExtResource( 32 ), ExtResource( 33 ), ExtResource( 34 ), ExtResource( 35 ), ExtResource( 36 ), ExtResource( 37 ), ExtResource( 38 ) ],
"loop": true,
"name": "Walk",
"speed": 5.0
} ]
[sub_resource type="RectangleShape2D" id=2]
extents = Vector2( 144, 230 )
[node name="Enemy" type="KinematicBody2D"]
scale = Vector2( 0.1, 0.1 )
script = ExtResource( 1 )
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
position = Vector2( 120, 0 )
frames = SubResource( 1 )
animation = "Idle"
frame = 13
playing = true
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( 110, 20 )
shape = SubResource( 2 )
__meta__ = {
"_edit_lock_": true
}
[node name="RayCast2D" type="RayCast2D" parent="."]
position = Vector2( 110, 60 )
enabled = true
cast_to = Vector2( 0, 200 )
[node name="Timer" type="Timer" parent="."]
wait_time = 2.0
one_shot = true
[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]