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/Engine/Engine.tscn

50 lines
1.6 KiB
Text
Raw Permalink Normal View History

[gd_scene load_steps=8 format=2]
2020-07-07 11:01:12 +00:00
[ext_resource path="res://Actors/Components/ActivationRange.gd" type="Script" id=1]
[ext_resource path="res://Actors/Objects/Engine/Engine.gd" type="Script" id=2]
[ext_resource path="res://Graphics/tgstation/engine-big.png" type="Texture" id=3]
[ext_resource path="res://Graphics/light_shadow_light.png" type="Texture" id=4]
[ext_resource path="res://Actors/Components/PowerManager.gd" type="Script" id=5]
2020-07-07 11:01:12 +00:00
2020-07-07 18:42:22 +00:00
[sub_resource type="RectangleShape2D" id=1]
2020-07-07 11:01:12 +00:00
extents = Vector2( 48, 48 )
2020-07-07 18:42:22 +00:00
[sub_resource type="RectangleShape2D" id=2]
2020-07-07 11:01:12 +00:00
extents = Vector2( 72, 72 )
[node name="Engine" type="StaticBody2D"]
script = ExtResource( 2 )
2020-07-07 18:42:22 +00:00
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( 48, 48 )
shape = SubResource( 1 )
2020-07-07 11:01:12 +00:00
[node name="engine" type="Sprite" parent="."]
texture = ExtResource( 3 )
centered = false
region_enabled = true
region_rect = Rect2( 0, 0, 96, 96 )
[node name="Light2D" type="Light2D" parent="."]
2020-07-16 12:37:21 +00:00
visible = false
2020-07-07 11:01:12 +00:00
position = Vector2( 48, 48 )
texture = ExtResource( 4 )
offset = Vector2( 0, 50 )
texture_scale = 2.0
energy = 0.002
[node name="ActivationRange" type="Area2D" parent="."]
visible = false
2020-07-22 15:34:04 +00:00
input_pickable = false
2020-07-07 11:01:12 +00:00
script = ExtResource( 1 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="ActivationRange"]
position = Vector2( 48, 56 )
2020-07-07 18:42:22 +00:00
shape = SubResource( 2 )
[node name="PowerManager" type="Node" parent="."]
script = ExtResource( 5 )
2020-07-16 12:37:21 +00:00
power_usage = 1.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 ]]