This repository has been archived on 2020-09-30. You can view files and clone it, but cannot push or open issues or pull requests.
odyssey-old/Actors/Objects/Lightbulb/Lightbulb.tscn

53 lines
1.7 KiB
Text
Raw Permalink Normal View History

2020-07-10 00:09:54 +00:00
[gd_scene load_steps=8 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-10 00:09:54 +00:00
[ext_resource path="res://Actors/Components/PowerManager.gd" type="Script" id=5]
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
2020-07-10 08:48:19 +00:00
region_rect = Rect2( 32, 0, 32, 32 )
2020-07-07 00:47:29 +00:00
[node name="Light2D" type="Light2D" parent="."]
2020-07-10 00:09:54 +00:00
enabled = false
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-22 15:34:04 +00:00
input_pickable = 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 )
2020-07-10 00:09:54 +00:00
[node name="PowerManager" type="Node" parent="."]
script = ExtResource( 5 )
power_usage = 5.0
[connection signal="power_connected" from="PowerManager" to="." method="_power_status_changed" binds= [ true ]]
[connection signal="power_disconnected" from="PowerManager" to="." method="_power_status_changed" binds= [ false ]]