-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbonfire.tscn
131 lines (103 loc) · 3.57 KB
/
bonfire.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
125
126
127
128
129
[gd_scene load_steps=15 format=1]
[ext_resource path="res://bonfire.gd" type="Script" id=1]
[ext_resource path="res://anims/bonfire/0.png" type="Texture" id=2]
[ext_resource path="res://anims/bonfire/1.png" type="Texture" id=3]
[ext_resource path="res://anims/bonfire/2.png" type="Texture" id=4]
[ext_resource path="res://anims/bonfire/3.png" type="Texture" id=5]
[ext_resource path="res://anims/bonfire/4.png" type="Texture" id=6]
[ext_resource path="res://anims/bonfire/5.png" type="Texture" id=7]
[ext_resource path="res://anims/bonfire/6.png" type="Texture" id=8]
[ext_resource path="res://anims/bonfire/7.png" type="Texture" id=9]
[ext_resource path="res://anims/bonfire/8.png" type="Texture" id=10]
[ext_resource path="res://spot.png" type="Texture" id=11]
[ext_resource path="res://hudfont.fnt" type="BitmapFont" id=12]
[sub_resource type="SpriteFrames" id=3]
animations = [ { "frames":[ ExtResource( 2 ), ExtResource( 3 ), ExtResource( 4 ), ExtResource( 5 ), ExtResource( 6 ), ExtResource( 7 ), ExtResource( 8 ), ExtResource( 9 ) ], "loop":true, "name":"burn", "speed":5.0 } ]
[sub_resource type="ConvexPolygonShape2D" id=4]
custom_solver_bias = 0.0
points = Vector2Array( -18.74, -5.16, 17.26, -5.16, 17.26, 32.84, -18.74, 32.84 )
[node name="bonfire" type="Node2D" groups=[ "torch" ]]
script/script = ExtResource( 1 )
[node name="AnimSprite" type="AnimatedSprite" parent="."]
visibility/visible = false
frames = SubResource( 3 )
animation = "burn"
frame = 1
playing = true
[node name="StaticSprite" type="Sprite" parent="."]
texture = ExtResource( 10 )
[node name="Light2D" type="Light2D" parent="."]
visibility/visible = false
enabled = true
editor_only = false
texture = ExtResource( 11 )
offset = Vector2( 0, 0 )
scale = 2.0
color = Color( 0.871094, 0.485763, 0.112289, 1 )
energy = 3.67
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( 4 )
shapes/0/transform = Matrix32( 1, 0, 0, 1, 0.74, -8.84 )
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"]
transform/pos = Vector2( 0.74, -8.84 )
build_mode = 0
polygon = Vector2Array( -18.74, -5.16, 17.26, -5.16, 17.26, 32.84, -18.74, 32.84 )
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( 12 )
text = "Press E to light torch"
percent_visible = 1.0
lines_skipped = 0
max_lines_visible = -1
[connection signal="timeout" from="Timer" to="." method="_on_Timer_timeout"]