-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtorch.tscn
90 lines (75 loc) · 2.72 KB
/
torch.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
90
[gd_scene load_steps=15 format=2]
[ext_resource path="res://tile_0316.png" type="Texture" id=1]
[ext_resource path="res://tile_0317.png" type="Texture" id=2]
[ext_resource path="res://tile_0318.png" type="Texture" id=3]
[ext_resource path="res://torch.gd" type="Script" id=4]
[ext_resource path="res://health.png" type="Texture" id=5]
[ext_resource path="res://torch_health.gd" type="Script" id=6]
[ext_resource path="res://torchTimer.gd" type="Script" id=7]
[ext_resource path="res://lightv2.png" type="Texture" id=8]
[ext_resource path="res://torchArea.gd" type="Script" id=9]
[ext_resource path="res://enemyRange.gd" type="Script" id=10]
[ext_resource path="res://helperText.tscn" type="PackedScene" id=11]
[sub_resource type="SpriteFrames" id=1]
animations = [ {
"frames": [ ExtResource( 1 ), ExtResource( 2 ) ],
"loop": true,
"name": "burn",
"speed": 5.0
}, {
"frames": [ ExtResource( 3 ) ],
"loop": true,
"name": "normal",
"speed": 5.0
} ]
[sub_resource type="RectangleShape2D" id=2]
extents = Vector2( 4.11214, 7.71613 )
[sub_resource type="RectangleShape2D" id=3]
extents = Vector2( 63.7388, 24.5066 )
[node name="torch" type="AnimatedSprite"]
frames = SubResource( 1 )
animation = "normal"
script = ExtResource( 4 )
[node name="RayCast2D" type="RayCast2D" parent="."]
position = Vector2( 0.200649, 8.96242 )
enabled = true
cast_to = Vector2( 0, 150 )
collision_mask = 4
[node name="Area2D" type="Area2D" parent="."]
collision_mask = 1025
script = ExtResource( 9 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="Area2D"]
position = Vector2( 0.112873, 0.790119 )
shape = SubResource( 2 )
[node name="TextureProgress" type="TextureProgress" parent="."]
margin_left = -3.97023
margin_top = -10.8105
margin_right = 140.03
margin_bottom = 29.1895
rect_scale = Vector2( 0.05, 0.05 )
value = 100.0
texture_progress = ExtResource( 5 )
script = ExtResource( 6 )
__meta__ = {
"_edit_use_anchors_": false
}
[node name="Timer" type="Timer" parent="."]
autostart = true
script = ExtResource( 7 )
[node name="Light2D" type="Light2D" parent="."]
texture = ExtResource( 8 )
mode = 2
shadow_enabled = true
[node name="enemyRange" type="Area2D" parent="."]
script = ExtResource( 10 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="enemyRange"]
shape = SubResource( 3 )
[node name="Node2D" parent="." instance=ExtResource( 11 )]
visible = false
position = Vector2( -15, -12 )
scale = Vector2( 0.5, 0.5 )
z_index = 50
[node name="disappearTimer" type="Timer" parent="."]
[connection signal="body_entered" from="Area2D" to="Area2D" method="_on_Area2D_body_entered"]
[connection signal="timeout" from="Timer" to="TextureProgress" method="_on_Timer_timeout"]
[connection signal="timeout" from="disappearTimer" to="." method="_on_disappearTimer_timeout"]