2020-07-07 07:40:20 +00:00
|
|
|
[gd_scene load_steps=7 format=2]
|
2020-07-07 00:47:29 +00:00
|
|
|
|
2020-07-07 07:40:20 +00:00
|
|
|
[ext_resource path="res://Graphics/light_shadow_light.png" type="Texture" id=1]
|
|
|
|
[ext_resource path="res://Graphics/tgstation/light.png" type="Texture" id=2]
|
|
|
|
[ext_resource path="res://Actors/Objects/Lightbulb/Lightbulb.gd" type="Script" id=3]
|
|
|
|
[ext_resource path="res://Actors/Components/ActivationRange.gd" type="Script" id=4]
|
2020-07-07 00:47:29 +00:00
|
|
|
|
|
|
|
[sub_resource type="RectangleShape2D" id=1]
|
|
|
|
extents = Vector2( 16, 16 )
|
|
|
|
|
2020-07-07 07:40:20 +00:00
|
|
|
[sub_resource type="RectangleShape2D" id=2]
|
|
|
|
extents = Vector2( 48, 32 )
|
|
|
|
|
2020-07-07 00:47:29 +00:00
|
|
|
[node name="Lighttube" type="Area2D"]
|
2020-07-07 07:40:20 +00:00
|
|
|
script = ExtResource( 3 )
|
2020-07-07 00:47:29 +00:00
|
|
|
|
2020-07-07 18:42:22 +00:00
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
|
|
|
shape = SubResource( 1 )
|
|
|
|
|
2020-07-07 00:47:29 +00:00
|
|
|
[node name="light" type="Sprite" parent="."]
|
2020-07-07 07:40:20 +00:00
|
|
|
texture = ExtResource( 2 )
|
2020-07-07 00:47:29 +00:00
|
|
|
region_enabled = true
|
|
|
|
region_rect = Rect2( 32, 0, 32, 32 )
|
|
|
|
|
|
|
|
[node name="Light2D" type="Light2D" parent="."]
|
2020-07-07 07:40:20 +00:00
|
|
|
texture = ExtResource( 1 )
|
2020-07-07 11:01:12 +00:00
|
|
|
texture_scale = 3.5
|
2020-07-07 00:47:29 +00:00
|
|
|
energy = 1.2
|
2020-07-07 11:17:30 +00:00
|
|
|
mode = 2
|
2020-07-07 11:01:12 +00:00
|
|
|
shadow_color = Color( 0, 0, 0, 1 )
|
2020-07-07 00:47:29 +00:00
|
|
|
shadow_filter_smooth = 10.0
|
|
|
|
__meta__ = {
|
|
|
|
"_edit_group_": true,
|
|
|
|
"_edit_lock_": true
|
|
|
|
}
|
|
|
|
|
2020-07-07 07:40:20 +00:00
|
|
|
[node name="ActivationRange" type="Area2D" parent="."]
|
2020-07-07 08:38:32 +00:00
|
|
|
visible = false
|
2020-07-07 07:40:20 +00:00
|
|
|
script = ExtResource( 4 )
|
|
|
|
|
|
|
|
[node name="CollisionShape2D" type="CollisionShape2D" parent="ActivationRange"]
|
|
|
|
position = Vector2( 0, 16 )
|
|
|
|
shape = SubResource( 2 )
|