-
Notifications
You must be signed in to change notification settings - Fork 1
/
Trap.tscn
69 lines (61 loc) · 3.22 KB
/
Trap.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
[gd_scene load_steps=33 format=2]
[ext_resource path="res://Area2D.gd" type="Script" id=1]
[ext_resource path="res://trap.png" type="Texture" id=2]
[ext_resource path="res://Beats.tscn" type="PackedScene" id=3]
[ext_resource path="res://trap_hit_5.png" type="Texture" id=4]
[ext_resource path="res://trap_hit_8.png" type="Texture" id=5]
[ext_resource path="res://trap_hit_6.png" type="Texture" id=6]
[ext_resource path="res://trap_hit_9.png" type="Texture" id=7]
[ext_resource path="res://trap_hit_2.png" type="Texture" id=8]
[ext_resource path="res://trap_hit_12.png" type="Texture" id=9]
[ext_resource path="res://trap_hit_3.png" type="Texture" id=10]
[ext_resource path="res://trap_hit_14.png" type="Texture" id=11]
[ext_resource path="res://trap_hit_16.png" type="Texture" id=12]
[ext_resource path="res://trap_hit_13.png" type="Texture" id=13]
[ext_resource path="res://trap_hit_1.png" type="Texture" id=14]
[ext_resource path="res://trap_hit_11.png" type="Texture" id=15]
[ext_resource path="res://trap_hit_4.png" type="Texture" id=16]
[ext_resource path="res://trap_hit_10.png" type="Texture" id=17]
[ext_resource path="res://trap_hit_15.png" type="Texture" id=18]
[ext_resource path="res://trap_hit_7.png" type="Texture" id=19]
[ext_resource path="res://trap_heal_4.png" type="Texture" id=20]
[ext_resource path="res://trap_heal_2.png" type="Texture" id=21]
[ext_resource path="res://trap_heal_1.png" type="Texture" id=22]
[ext_resource path="res://trap_heal_5.png" type="Texture" id=23]
[ext_resource path="res://trap_heal_7.png" type="Texture" id=24]
[ext_resource path="res://trap_heal_11.png" type="Texture" id=25]
[ext_resource path="res://trap_heal_8.png" type="Texture" id=26]
[ext_resource path="res://trap_heal_9.png" type="Texture" id=27]
[ext_resource path="res://trap_heal_10.png" type="Texture" id=28]
[ext_resource path="res://trap_heal_6.png" type="Texture" id=29]
[ext_resource path="res://trap_heal_3.png" type="Texture" id=30]
[sub_resource type="CircleShape2D" id=5]
radius = 24.0208
[sub_resource type="SpriteFrames" id=6]
animations = [ {
"frames": [ ExtResource( 2 ) ],
"loop": false,
"name": "default",
"speed": 5.0
}, {
"frames": [ ExtResource( 22 ), ExtResource( 21 ), ExtResource( 30 ), ExtResource( 20 ), ExtResource( 23 ), ExtResource( 29 ), ExtResource( 24 ), ExtResource( 26 ), ExtResource( 27 ), ExtResource( 28 ), ExtResource( 25 ) ],
"loop": false,
"name": "heal",
"speed": 30.0
}, {
"frames": [ ExtResource( 14 ), ExtResource( 8 ), ExtResource( 10 ), ExtResource( 16 ), ExtResource( 4 ), ExtResource( 6 ), ExtResource( 19 ), ExtResource( 5 ), ExtResource( 7 ), ExtResource( 17 ), ExtResource( 15 ), ExtResource( 9 ), ExtResource( 13 ), ExtResource( 11 ), ExtResource( 18 ), ExtResource( 12 ) ],
"loop": false,
"name": "hit",
"speed": 15.0
} ]
[node name="Trap" type="Area2D"]
position = Vector2( -744, -544 )
script = ExtResource( 1 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
shape = SubResource( 5 )
[node name="AnimatedSprite" type="AnimatedSprite" parent="."]
frames = SubResource( 6 )
playing = true
[node name="Beats" parent="." instance=ExtResource( 3 )]
[connection signal="area_entered" from="." to="." method="_on_Trap_area_entered"]
[connection signal="timeout" from="Beats" to="." method="_on_Beats_timeout"]