-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtorch.tscn
126 lines (98 loc) · 3.06 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
[gd_scene load_steps=10 format=1]
[ext_resource path="res://torch.gd" type="Script" id=1]
[ext_resource path="res://anims/torch/torch_1.png" type="Texture" id=2]
[ext_resource path="res://anims/torch/torch_2.png" type="Texture" id=3]
[ext_resource path="res://anims/torch/torch_3.png" type="Texture" id=4]
[ext_resource path="res://anims/torch/torch_off.png" type="Texture" id=5]
[ext_resource path="res://spot.png" type="Texture" id=6]
[ext_resource path="res://hudfont.fnt" type="BitmapFont" id=7]
[sub_resource type="SpriteFrames" id=1]
animations = [ { "frames":[ ExtResource( 2 ), ExtResource( 3 ), ExtResource( 4 ) ], "loop":true, "name":"burn", "speed":5.0 } ]
[sub_resource type="ConvexPolygonShape2D" id=2]
custom_solver_bias = 0.0
points = Vector2Array( -12, 20, 12, 20, 12, 32, -12, 32 )
[node name="torch" type="Node2D" groups=[ "torch" ]]
script/script = ExtResource( 1 )
[node name="AnimSprite" type="AnimatedSprite" parent="."]
frames = SubResource( 1 )
animation = "burn"
frame = 1
playing = true
[node name="StaticSprite" type="Sprite" parent="."]
visibility/visible = false
texture = ExtResource( 5 )
[node name="Light2D" type="Light2D" parent="."]
enabled = true
editor_only = false
texture = ExtResource( 6 )
offset = Vector2( 0, 0 )
scale = 2.0
color = Color( 0.816406, 0.62237, 0.251938, 1 )
energy = 1.0
mode = 0
range/height = 0.0
range/z_min = -1024
range/z_max = 1024
range/layer_min = 0
range/layer_max = 0
range/item_mask = 1
shadow/enabled = true
shadow/color = Color( 0, 0, 0, 0 )
shadow/buffer_size = 2048
shadow/esm_multiplier = 80.0
shadow/item_mask = 1
[node name="Timer" type="Timer" parent="."]
process_mode = 1
wait_time = 0.1
one_shot = false
autostart = true
[node name="InteractArea" type="Area2D" parent="."]
input/pickable = true
shapes/0/shape = SubResource( 2 )
shapes/0/transform = Matrix32( 1, 0, 0, 1, 0, 0 )
shapes/0/trigger = false
gravity_vec = Vector2( 0, 1 )
gravity = 98.0
linear_damp = 0.1
angular_damp = 1.0
[node name="CollisionPolygon2D" type="CollisionPolygon2D" parent="InteractArea"]
build_mode = 0
polygon = Vector2Array( -12, 20, 12, 20, 12, 32, -12, 32 )
shape_range = Vector2( 0, 0 )
trigger = false
[node name="HUD" type="CanvasLayer" parent="."]
layer = 1
offset = Vector2( 0, 0 )
rotation = 0.0
scale = Vector2( 1, 1 )
[node name="CenterContainer" type="CenterContainer" parent="HUD"]
anchor/left = 3
anchor/top = 1
anchor/right = 3
focus/ignore_mouse = false
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 2
margin/left = 0.0
margin/top = 150.0
margin/right = 0.0
margin/bottom = 0.0
use_top_left = true
[node name="InteractLabel" type="Label" parent="HUD/CenterContainer"]
visibility/visible = false
focus/ignore_mouse = true
focus/stop_mouse = true
size_flags/horizontal = 2
size_flags/vertical = 0
margin/left = -152.0
margin/top = -15.0
margin/right = 152.0
margin/bottom = 15.0
custom_fonts/font = ExtResource( 7 )
text = "Press E to light torch"
align = 1
valign = 1
percent_visible = 1.0
lines_skipped = 0
max_lines_visible = -1
[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]