1
- [gd_scene load_steps =12 format =2 ]
2
-
3
- [ext_resource path ="res://torch/tiles/tiles-72.png" type ="Texture" id =1 ]
4
- [ext_resource path ="res://torch/tiles/tiles-73.png" type ="Texture" id =2 ]
5
- [ext_resource path ="res://torch/tiles/tiles-74.png" type ="Texture" id =3 ]
6
- [ext_resource path ="res://torch/tiles/tiles-75.png" type ="Texture" id =4 ]
7
- [ext_resource path ="res://torch/tiles/tiles-76.png" type ="Texture" id =5 ]
8
- [ext_resource path ="res://torch/tiles/tiles-77.png" type ="Texture" id =6 ]
9
- [ext_resource path ="res://torch/tiles/tiles-78.png" type ="Texture" id =7 ]
10
- [ext_resource path ="res://torch/tiles/tiles-79.png" type ="Texture" id =8 ]
11
- [ext_resource path ="res://torch/LightSource.png" type ="Texture" id =9 ]
1
+ [gd_scene load_steps =17 format =2 ]
2
+
3
+ [ext_resource path ="res://torch/torch.gd" type ="Script" id =1 ]
4
+ [ext_resource path ="res://torch/tiles/tiles-72.png" type ="Texture" id =2 ]
5
+ [ext_resource path ="res://torch/tiles/tiles-73.png" type ="Texture" id =3 ]
6
+ [ext_resource path ="res://torch/tiles/tiles-74.png" type ="Texture" id =4 ]
7
+ [ext_resource path ="res://torch/tiles/tiles-75.png" type ="Texture" id =5 ]
8
+ [ext_resource path ="res://torch/tiles/tiles-76.png" type ="Texture" id =6 ]
9
+ [ext_resource path ="res://torch/tiles/tiles-77.png" type ="Texture" id =7 ]
10
+ [ext_resource path ="res://torch/tiles/tiles-78.png" type ="Texture" id =8 ]
11
+ [ext_resource path ="res://torch/tiles/tiles-79.png" type ="Texture" id =9 ]
12
+ [ext_resource path ="res://torch/LightSource.png" type ="Texture" id =10 ]
12
13
13
14
[sub_resource type ="SpriteFrames" id =1 ]
14
15
15
16
animations = [ {
16
- "frames" : [ ExtResource ( 1 ), ExtResource ( 2 ), ExtResource ( 3 ), ExtResource ( 4 ), ExtResource ( 5 ), ExtResource ( 6 ), ExtResource ( 7 ), ExtResource ( 8 ) ],
17
+ "frames" : [ ExtResource ( 2 ), ExtResource ( 3 ), ExtResource ( 4 ), ExtResource ( 5 ), ExtResource ( 6 ), ExtResource ( 7 ), ExtResource ( 8 ), ExtResource ( 9 ) ],
17
18
"loop" : true ,
18
19
"name" : "default" ,
19
20
"speed" : 8.0
@@ -24,21 +25,92 @@ animations = [ {
24
25
custom_solver_bias = 0.0
25
26
extents = Vector2 ( 10 , 11.084 )
26
27
27
- [node name ="torch" type ="StaticBody2D" ]
28
+ [sub_resource type ="Animation" id =3 ]
29
+
30
+ resource_name = "flickering"
31
+ length = 0.2
32
+ loop = true
33
+ step = 0.1
34
+ tracks/0/type = "value"
35
+ tracks/0/path = NodePath ("Light2D:energy" )
36
+ tracks/0/interp = 0
37
+ tracks/0/loop_wrap = true
38
+ tracks/0/imported = false
39
+ tracks/0/enabled = true
40
+ tracks/0/keys = {
41
+ "times" : PoolRealArray ( 0 , 0.1 ),
42
+ "transitions" : PoolRealArray ( 1 , 1 ),
43
+ "update" : 1 ,
44
+ "values" : [ 0.99 , 1.02 ]
45
+ }
46
+
47
+ [sub_resource type ="Gradient" id =4 ]
48
+
49
+ offsets = PoolRealArray ( 0 , 0.0102828 , 1 )
50
+ colors = PoolColorArray ( 0 , 0 , 0 , 1 , 0.9375 , 0.772753 , 0.0206498 , 1 , 0.914063 , 0.354099 , 0.0181202 , 1 )
51
+
52
+ [sub_resource type ="GradientTexture" id =5 ]
53
+
54
+ flags = 4
55
+ gradient = SubResource ( 4 )
56
+ width = 2048
57
+
58
+ [sub_resource type ="ParticlesMaterial" id =6 ]
59
+
60
+ render_priority = 0
61
+ trail_divisor = 1
62
+ emission_shape = 0
63
+ flag_align_y = false
64
+ flag_rotate_y = false
65
+ flag_disable_z = true
66
+ spread = 90.0
67
+ flatness = 0.0
68
+ gravity = Vector3 ( -5 , -15 , 0 )
69
+ initial_velocity = 1.0
70
+ initial_velocity_random = 0.0
71
+ angular_velocity = 1 .04537e-42
72
+ angular_velocity_random = 0.0
73
+ orbit_velocity = 0.0
74
+ orbit_velocity_random = 0.0
75
+ linear_accel = 0.0
76
+ linear_accel_random = 0.0
77
+ radial_accel = 12.0
78
+ radial_accel_random = 0.0
79
+ tangential_accel = 0.0
80
+ tangential_accel_random = 0.0
81
+ damping = 0.0
82
+ damping_random = 0.0
83
+ angle = 0.0
84
+ angle_random = 0.0
85
+ scale = 1.0
86
+ scale_random = 0.0
87
+ color_ramp = SubResource ( 5 )
88
+ hue_variation = 0.0
89
+ hue_variation_random = 0.0
90
+ anim_speed = 0.0
91
+ anim_speed_random = 0.0
92
+ anim_offset = 0.0
93
+ anim_offset_random = 0.0
94
+ anim_loop = false
95
+ _sections_unfolded = [ "Color" , "Emission Shape" , "Flags" , "Gravity" , "Initial Velocity" , "Radial Accel" , "Spread" , "Trail" ]
96
+
97
+ [node name ="torch" type ="StaticBody2D" index ="0" ]
28
98
29
99
input_pickable = false
30
- collision_layer = 2
31
- collision_mask = 3
100
+ collision_layer = 1
101
+ collision_mask = 1
32
102
constant_linear_velocity = Vector2 ( 0 , 0 )
33
103
constant_angular_velocity = 0.0
34
104
friction = 1.0
35
105
bounce = 0.0
106
+ script = ExtResource ( 1 )
36
107
_sections_unfolded = [ "Collision" ]
37
108
38
109
[node name ="AnimatedSprite" type ="AnimatedSprite" parent ="." index ="0" ]
39
110
40
111
frames = SubResource ( 1 )
41
112
animation = "default"
113
+ frame = 5
42
114
playing = true
43
115
44
116
[node name ="CollisionShape2D" type ="CollisionShape2D" parent ="." index ="1" ]
@@ -50,11 +122,11 @@ shape = SubResource( 2 )
50
122
51
123
enabled = true
52
124
editor_only = false
53
- texture = ExtResource ( 9 )
125
+ texture = ExtResource ( 10 )
54
126
offset = Vector2 ( 0 , 0 )
55
127
texture_scale = 1.0
56
128
color = Color ( 1 , 1 , 1 , 1 )
57
- energy = 1.0
129
+ energy = 0.99
58
130
mode = 0
59
131
range_height = 0.0
60
132
range_z_min = -1024
@@ -71,4 +143,37 @@ shadow_filter_smooth = 4.0
71
143
shadow_item_cull_mask = 1
72
144
_sections_unfolded = [ "Shadow" , "Visibility" ]
73
145
146
+ [node name ="light_animation_player" type ="AnimationPlayer" parent ="." index ="3" ]
147
+
148
+ root_node = NodePath (".." )
149
+ autoplay = ""
150
+ playback_process_mode = 1
151
+ playback_default_blend_time = 0.0
152
+ playback_speed = 1.0
153
+ anims/flickering = SubResource ( 3 )
154
+ blend_times = [ ]
155
+
156
+ [node name ="Particles2D" type ="Particles2D" parent ="." index ="4" ]
157
+
158
+ position = Vector2 ( -0.628052 , 1.46544 )
159
+ emitting = true
160
+ amount = 3
161
+ lifetime = 1.0
162
+ one_shot = false
163
+ preprocess = 0.0
164
+ speed_scale = 1.0
165
+ explosiveness = 0.0
166
+ randomness = 0.3
167
+ fixed_fps = 0
168
+ fract_delta = true
169
+ visibility_rect = Rect2 ( -100 , -100 , 200 , 200 )
170
+ local_coords = true
171
+ draw_order = 0
172
+ process_material = SubResource ( 6 )
173
+ texture = null
174
+ normal_map = null
175
+ h_frames = 1
176
+ v_frames = 1
177
+ _sections_unfolded = [ "Drawing" , "Process Material" , "Time" ]
178
+
74
179
0 commit comments