-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEnemyBall.tscn
76 lines (58 loc) · 2.23 KB
/
EnemyBall.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
[gd_scene load_steps=17 format=2]
[ext_resource path="res://sprites/ball0.png" type="Texture" id=1]
[ext_resource path="res://sprites/ball1.png" type="Texture" id=2]
[ext_resource path="res://sprites/ball2.png" type="Texture" id=3]
[ext_resource path="res://sprites/ball3.png" type="Texture" id=4]
[ext_resource path="res://EnemyBall.gd" type="Script" id=5]
[ext_resource path="res://sprites/ball_laf1.png" type="Texture" id=6]
[ext_resource path="res://sprites/ball_laf0.png" type="Texture" id=7]
[sub_resource type="CircleShape2D" id=1]
[sub_resource type="AtlasTexture" id=3]
atlas = ExtResource( 1 )
region = Rect2( 0, 0, 36, 36 )
[sub_resource type="AtlasTexture" id=4]
atlas = ExtResource( 4 )
region = Rect2( 0, 0, 36, 36 )
[sub_resource type="AtlasTexture" id=5]
atlas = ExtResource( 2 )
region = Rect2( 0, 0, 36, 36 )
[sub_resource type="AtlasTexture" id=6]
atlas = ExtResource( 3 )
region = Rect2( 0, 0, 36, 36 )
[sub_resource type="AtlasTexture" id=7]
atlas = ExtResource( 7 )
region = Rect2( 0, 0, 36, 36 )
[sub_resource type="AtlasTexture" id=8]
atlas = ExtResource( 6 )
region = Rect2( 0, 0, 36, 36 )
[sub_resource type="SpriteFrames" id=2]
animations = [ {
"frames": [ SubResource( 3 ), SubResource( 4 ), SubResource( 5 ), SubResource( 6 ) ],
"loop": true,
"name": "default",
"speed": 9.0
}, {
"frames": [ SubResource( 7 ), SubResource( 8 ) ],
"loop": true,
"name": "laugh",
"speed": 9.0
} ]
[sub_resource type="CircleShape2D" id=9]
[node name="EnemyBall" type="KinematicBody2D"]
script = ExtResource( 5 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( 0.402, 0.506 )
scale = Vector2( 1.5, 1.5 )
shape = SubResource( 1 )
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
frames = SubResource( 2 )
[node name="StunTimer" type="Timer" parent="."]
wait_time = 3.0
[node name="KinematicBody2D" type="KinematicBody2D" parent="."]
[node name="CollisionShape2D" type="CollisionShape2D" parent="KinematicBody2D"]
shape = SubResource( 9 )
one_way_collision = true
one_way_collision_margin = 0.0
[node name="WaitTimer" type="Timer" parent="."]
[connection signal="timeout" from="StunTimer" to="." method="_on_StunTimer_timeout"]
[connection signal="timeout" from="WaitTimer" to="." method="_on_WaitTimer_timeout"]