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
Plaintext

[gd_scene load_steps=8 format=2]
[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]
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 48, 48 )
[sub_resource type="RectangleShape2D" id=2]
extents = Vector2( 72, 72 )
[node name="Engine" type="StaticBody2D"]
script = ExtResource( 2 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( 48, 48 )
shape = SubResource( 1 )
[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="."]
visible = false
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
input_pickable = false
script = ExtResource( 1 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="ActivationRange"]
position = Vector2( 48, 56 )
shape = SubResource( 2 )
[node name="PowerManager" type="Node" parent="."]
script = ExtResource( 5 )
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 ]]