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

38 lines
1.3 KiB
Text
Raw Permalink Normal View History

2020-07-12 15:27:55 +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/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
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 )
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 ]]