-
Notifications
You must be signed in to change notification settings - Fork 45
/
gem.tscn
64 lines (55 loc) · 1.91 KB
/
gem.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
[gd_scene load_steps=10 format=3 uid="uid://dxqd624xiv3ss"]
[ext_resource type="Texture2D" uid="uid://cngtsvgjd34my" path="res://2d_dynamic_lights/assets/gem/0000.png" id="1_vwoeo"]
[ext_resource type="Texture2D" uid="uid://c642uqpv75cw2" path="res://2d_dynamic_lights/assets/gem/0001.png" id="2_f8v24"]
[ext_resource type="Texture2D" uid="uid://rpmjycnrpuh1" path="res://2d_dynamic_lights/assets/gem/0002.png" id="3_ienmu"]
[ext_resource type="Texture2D" uid="uid://3kxsf4q26jav" path="res://2d_dynamic_lights/assets/gem/0003.png" id="4_plrnt"]
[ext_resource type="Texture2D" uid="uid://bia88m0tq31cy" path="res://2d_dynamic_lights/assets/gem/0004.png" id="5_v6adw"]
[sub_resource type="SpriteFrames" id="SpriteFrames_j704l"]
animations = [{
"frames": [{
"duration": 1.0,
"texture": ExtResource("1_vwoeo")
}, {
"duration": 1.0,
"texture": ExtResource("2_f8v24")
}, {
"duration": 1.0,
"texture": ExtResource("3_ienmu")
}, {
"duration": 1.0,
"texture": ExtResource("4_plrnt")
}, {
"duration": 1.0,
"texture": ExtResource("5_v6adw")
}],
"loop": true,
"name": &"default",
"speed": 10.0
}]
[sub_resource type="GDScript" id="GDScript_pof8r"]
script/source = "extends AnimatedSprite2D
func _ready() -> void:
play(\"default\")
"
[sub_resource type="Gradient" id="Gradient_8kjhw"]
colors = PackedColorArray(1, 1, 1, 1, 0, 0, 0, 1)
[sub_resource type="GradientTexture2D" id="GradientTexture2D_k3537"]
gradient = SubResource("Gradient_8kjhw")
width = 256
height = 256
fill = 1
fill_from = Vector2(0.5, 0.5)
fill_to = Vector2(1, 0.5)
[node name="Gem" type="AnimatedSprite2D"]
modulate = Color(1.6, 1.2, 1.2, 1)
light_mask = 0
texture_filter = 1
sprite_frames = SubResource("SpriteFrames_j704l")
script = SubResource("GDScript_pof8r")
[node name="PointLight2D" type="PointLight2D" parent="."]
color = Color(1, 0.964706, 0.737255, 1)
energy = 1.6
range_layer_min = -100
range_layer_max = 100
texture = SubResource("GradientTexture2D_k3537")
texture_scale = 0.3