-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnode_2d.tscn
More file actions
142 lines (111 loc) · 4.66 KB
/
node_2d.tscn
File metadata and controls
142 lines (111 loc) · 4.66 KB
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
130
131
132
133
134
135
136
137
138
139
140
141
142
[gd_scene load_steps=14 format=3 uid="uid://cimc13dbu3rp4"]
[ext_resource type="Texture2D" uid="uid://xbktq8kcxtpw" path="res://floor.png" id="1_bahow"]
[ext_resource type="Texture2D" uid="uid://d2at6gjym7ri7" path="res://Light.png" id="2_h36co"]
[ext_resource type="PackedScene" uid="uid://durvk05miel4g" path="res://wall.tscn" id="2_lyvtk"]
[ext_resource type="PackedScene" uid="uid://crbxrf51kfvld" path="res://player.tscn" id="3_63mde"]
[ext_resource type="Shader" path="res://glow_in_dark.gdshader" id="5_syuis"]
[ext_resource type="Texture2D" uid="uid://2v4bwjtcbqqq" path="res://square.png" id="6_sldvm"]
[sub_resource type="OccluderPolygon2D" id="OccluderPolygon2D_j6yi8"]
closed = false
polygon = PackedVector2Array(-7.08897, -7.08897, 7.03203, -7.08897, 7.03203, 7.03203, -7.08897, 7.03203)
[sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_wnn5f"]
light_mode = 1
[sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_856si"]
light_mode = 1
[sub_resource type="CanvasItemMaterial" id="CanvasItemMaterial_3ktm8"]
light_mode = 1
[sub_resource type="Gradient" id="Gradient_t1kl2"]
colors = PackedColorArray(0, 1, 0, 1, 0, 1, 1, 1)
[sub_resource type="GradientTexture2D" id="GradientTexture2D_1ln4k"]
gradient = SubResource("Gradient_t1kl2")
fill_to = Vector2(1, 1)
[sub_resource type="ShaderMaterial" id="ShaderMaterial_ihwjm"]
shader = ExtResource("5_syuis")
shader_parameter/on_light_color = null
[node name="Node2D" type="Node2D"]
[node name="Room" type="Node2D" parent="."]
[node name="Floor" type="Sprite2D" parent="Room"]
position = Vector2(281, 281)
scale = Vector2(35.125, 35.125)
texture = ExtResource("1_bahow")
[node name="LightOccluder2D" type="LightOccluder2D" parent="Room/Floor"]
occluder = SubResource("OccluderPolygon2D_j6yi8")
occluder_light_mask = 3
[node name="Wall" parent="Room" instance=ExtResource("2_lyvtk")]
position = Vector2(304, 71)
scale = Vector2(6, 6)
[node name="Wall2" parent="Room" instance=ExtResource("2_lyvtk")]
position = Vector2(304, 167)
scale = Vector2(6, 6)
occluder_light_mask = 2
[node name="StaticBody2D" parent="Room/Wall2" index="1"]
collision_layer = 18
[node name="Wall3" parent="Room" instance=ExtResource("2_lyvtk")]
position = Vector2(304, 263)
scale = Vector2(6, 6)
occluder_light_mask = 1
[node name="StaticBody2D" parent="Room/Wall3" index="1"]
collision_layer = 17
[node name="Wall4" parent="Room" instance=ExtResource("2_lyvtk")]
position = Vector2(304, 359)
scale = Vector2(6, 6)
[node name="Wall5" parent="Room" instance=ExtResource("2_lyvtk")]
position = Vector2(304, 455)
scale = Vector2(6, 6)
[node name="Wall6" parent="Room" instance=ExtResource("2_lyvtk")]
position = Vector2(304, 551)
scale = Vector2(6, 6)
[node name="Lights" type="Node2D" parent="."]
[node name="PointLight2D" type="PointLight2D" parent="Lights"]
position = Vector2(111, 253)
scale = Vector2(6.71, 6.23)
color = Color(0, 0, 1, 1)
energy = 2.0
shadow_enabled = true
texture = ExtResource("2_h36co")
texture_scale = 14.35
[node name="Sprite2D" type="Sprite2D" parent="Lights/PointLight2D"]
modulate = Color(0, 0, 1, 1)
material = SubResource("CanvasItemMaterial_wnn5f")
scale = Vector2(0.223547, 0.223547)
texture = ExtResource("1_bahow")
[node name="PointLight2D2" type="PointLight2D" parent="Lights"]
position = Vector2(386, 96)
scale = Vector2(6.71, 6.23)
color = Color(1, 0, 0, 1)
energy = 2.0
shadow_enabled = true
shadow_item_cull_mask = 2
texture = ExtResource("2_h36co")
texture_scale = 0.5
[node name="Sprite2D2" type="Sprite2D" parent="Lights/PointLight2D2"]
modulate = Color(1, 0, 0, 1)
material = SubResource("CanvasItemMaterial_856si")
scale = Vector2(0.223547, 0.223547)
texture = ExtResource("1_bahow")
[node name="CanvasModulate" type="CanvasModulate" parent="."]
position = Vector2(0, 3.05176e-05)
color = Color(0.404511, 0.404511, 0.404511, 1)
[node name="Player" parent="." node_paths=PackedStringArray("lights", "canvasModulate") instance=ExtResource("3_63mde")]
position = Vector2(422, 75)
lights = NodePath("../Lights")
canvasModulate = NodePath("../CanvasModulate")
[node name="Node2D" type="Node2D" parent="."]
position = Vector2(0, -92)
[node name="Sprite2D" type="Sprite2D" parent="Node2D"]
clip_children = 2
light_mask = 3
material = SubResource("CanvasItemMaterial_3ktm8")
position = Vector2(442, 326)
scale = Vector2(1, 4.9)
texture = SubResource("GradientTexture2D_1ln4k")
[node name="Sprite2D2" type="Sprite2D" parent="Node2D/Sprite2D"]
self_modulate = Color(0.403922, 0.403922, 0.403922, 1)
light_mask = 3
material = SubResource("ShaderMaterial_ihwjm")
position = Vector2(1.99997, -3.50009)
scale = Vector2(0.920001, 1.07)
texture = ExtResource("6_sldvm")
[editable path="Room/Wall2"]
[editable path="Room/Wall3"]
[editable path="Room/Wall4"]