Doors are powered, odyssey's grid is much better
This commit is contained in:
parent
7793ae2598
commit
a65bc28958
7 changed files with 141 additions and 45 deletions
|
@ -5,7 +5,11 @@ class_name GameObjectDoor
|
|||
export(NodePath) var interlockTargetPath
|
||||
var interlockTarget: GameObjectDoor = null
|
||||
|
||||
export var idle_usage = 2
|
||||
export var active_usage = 10
|
||||
|
||||
onready var activationRange = $ActivationRange as ActivationRange
|
||||
onready var manager = $PowerManager as PowerManager
|
||||
|
||||
signal changed(open)
|
||||
|
||||
|
@ -16,6 +20,10 @@ func _ready():
|
|||
activationRange.visible = true
|
||||
|
||||
func set_open(open: bool):
|
||||
if not manager:
|
||||
return
|
||||
manager.power_usage = active_usage
|
||||
if manager.powered:
|
||||
if open:
|
||||
$Sprite.play("open")
|
||||
if interlockTarget != null:
|
||||
|
@ -24,6 +32,8 @@ func set_open(open: bool):
|
|||
$Sprite.play("close")
|
||||
|
||||
func _animation_finished():
|
||||
if manager:
|
||||
manager.power_usage = idle_usage
|
||||
if $Sprite.animation == "open":
|
||||
# Disable collider
|
||||
collision_layer = 16
|
||||
|
|
|
@ -1,8 +1,9 @@
|
|||
[gd_scene load_steps=12 format=2]
|
||||
[gd_scene load_steps=13 format=2]
|
||||
|
||||
[ext_resource path="res://Actors/Objects/Door/Door.gd" type="Script" id=1]
|
||||
[ext_resource path="res://Graphics/tgstation/opening-sheet.png" type="Texture" id=2]
|
||||
[ext_resource path="res://Actors/Components/ActivationRange.gd" type="Script" id=3]
|
||||
[ext_resource path="res://Actors/Components/PowerManager.gd" type="Script" id=4]
|
||||
|
||||
[sub_resource type="RectangleShape2D" id=1]
|
||||
extents = Vector2( 16, 16 )
|
||||
|
@ -69,5 +70,9 @@ script = ExtResource( 3 )
|
|||
[node name="CollisionShape2D" type="CollisionShape2D" parent="ActivationRange"]
|
||||
position = Vector2( 16, 16 )
|
||||
shape = SubResource( 8 )
|
||||
|
||||
[node name="PowerManager" type="Node" parent="."]
|
||||
script = ExtResource( 4 )
|
||||
power_usage = 2.0
|
||||
[connection signal="animation_finished" from="Sprite" to="." method="_animation_finished"]
|
||||
[connection signal="timeout" from="Timer" to="." method="_close_timer_triggered"]
|
||||
|
|
|
@ -42,6 +42,7 @@ shader_param/cable_color = Color( 0, 0, 0, 0 )
|
|||
radius = 12.0
|
||||
|
||||
[node name="ElectricSocket" type="Area2D"]
|
||||
z_index = -8
|
||||
collision_layer = 4
|
||||
collision_mask = 2147483652
|
||||
script = ExtResource( 2 )
|
||||
|
|
|
@ -1,11 +1,10 @@
|
|||
[gd_scene load_steps=8 format=2]
|
||||
[gd_scene load_steps=7 format=2]
|
||||
|
||||
[ext_resource path="res://Scenes/Maps/odyssey.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://Actors/Player/Player.tscn" type="PackedScene" id=2]
|
||||
[ext_resource path="res://Scenes/UI.tscn" type="PackedScene" id=3]
|
||||
[ext_resource path="res://Scenes/World.gd" type="Script" id=4]
|
||||
[ext_resource path="res://Scenes/Game.gd" type="Script" id=5]
|
||||
[ext_resource path="res://Scenes/UI.gd" type="Script" id=6]
|
||||
[ext_resource path="res://Scenes/Maps/runtime.tscn" type="PackedScene" id=7]
|
||||
|
||||
[node name="scene" type="Node"]
|
||||
|
@ -31,6 +30,5 @@ is_controlled = true
|
|||
|
||||
[node name="ui" parent="CanvasLayer" instance=ExtResource( 3 )]
|
||||
mouse_filter = 2
|
||||
script = ExtResource( 6 )
|
||||
|
||||
[node name="systems" type="Node" parent="."]
|
||||
|
|
|
@ -53,7 +53,7 @@ cell_size = Vector2( 32, 32 )
|
|||
cell_quadrant_size = 32
|
||||
occluder_light_mask = -2147483647
|
||||
format = 1
|
||||
tile_data = PoolIntArray( -393224, 0, 131073, -393217, 0, 131073, -458744, 0, 131073, -327689, 0, 65537, -327688, 0, 2, -327687, 0, 1, -327686, 0, 65536, -327685, 0, 196608, -327681, 0, 65539, -393208, 0, 65539, -262153, 0, 65539, -262151, 0, 65539, -262149, 0, 65538, -262148, 0, 65536, -262147, 0, 65536, -262146, 0, 65536, -262145, 0, 2, -327680, 0, 65536, -327679, 0, 65536, -327678, 0, 1, -327677, 0, 65536, -327676, 0, 65536, -327675, 0, 65536, -327674, 0, 65536, -327673, 0, 65536, -327672, 0, 131074, -196617, 0, 65539, -196615, 0, 131075, -262142, 0, 65539, -262136, 0, 65539, -131081, 0, 65538, -131080, 0, 196608, -196606, 0, 65539, -196600, 0, 65539, -65544, 0, 131075, -131070, 0, 131075, -131066, 0, 65537, -131065, 0, 65536, -131064, 0, 196611, -65530, 0, 65539, 6, 0, 65539, 65542, 0, 65539, 131078, 0, 65539, 196614, 0, 65539, 327675, 0, 65537, 327676, 0, 65536, 327677, 0, 196608, 262144, 0, 65537, 262145, 0, 65536, 262146, 0, 65536, 262147, 0, 65536, 262148, 0, 65536, 262149, 0, 65536, 262150, 0, 2, 262151, 0, 65536, 262152, 0, 65536, 262153, 0, 65536, 262154, 0, 196608, 262160, 0, 131073, 393211, 0, 65539, 393213, 0, 65539, 327680, 0, 65539, 327690, 0, 65539, 327696, 0, 65539, 458747, 0, 65539, 458749, 0, 65538, 458750, 0, 65536, 458751, 0, 65536, 393216, 0, 196611, 393226, 0, 3, 393227, 0, 65536, 393228, 0, 65536, 393229, 0, 65536, 393230, 0, 65536, 393231, 0, 65536, 393232, 0, 2, 393233, 0, 196608, 524283, 0, 65539, 458762, 0, 65539, 458769, 0, 65539, 589819, 0, 65539, 524298, 0, 65539, 524305, 0, 65539, 655355, 0, 65539, 655358, 0, 65537, 655359, 0, 65536, 589824, 0, 65536, 589825, 0, 196608, 589834, 0, 65539, 589841, 0, 65539, 720891, 0, 65539, 720894, 0, 65539, 655361, 0, 65538, 655362, 0, 1, 655363, 0, 65536, 655364, 0, 65536, 655365, 0, 65536, 655366, 0, 1, 655367, 0, 65536, 655368, 0, 65536, 655369, 0, 65536, 655370, 0, 196610, 655371, 0, 65536, 655372, 0, 65536, 655373, 0, 65536, 655374, 0, 65536, 655375, 0, 65536, 655376, 0, 1, 655377, 0, 196611, 786427, 0, 65538, 786428, 0, 65536, 786429, 0, 65536, 786430, 0, 196611, 720898, 0, 131075, 720902, 0, 65539, 720906, 0, 131075, 720912, 0, 131075, 786438, 0, 65539, 851974, 0, 65539, 917510, 0, 65539, 983046, 0, 65539, 1048582, 0, 65539, 1179640, 0, 65537, 1179641, 0, 65536, 1179642, 0, 196608, 1179647, 0, 65537, 1114112, 0, 65536, 1114113, 0, 65536, 1114114, 0, 65536, 1114115, 0, 65536, 1114116, 0, 65536, 1114117, 0, 65536, 1114118, 0, 131074, 1245176, 0, 65539, 1245178, 0, 65538, 1245179, 0, 65536, 1245180, 0, 65536, 1245181, 0, 65536, 1245182, 0, 65536, 1245183, 0, 196611, 1179654, 0, 65539, 1310712, 0, 65539, 1245190, 0, 65539, 1376248, 0, 65539, 1310726, 0, 65539, 1441784, 0, 65539, 1441786, 0, 65537, 1441787, 0, 65536, 1441788, 0, 65536, 1441789, 0, 65536, 1441790, 0, 65536, 1441791, 0, 196608, 1376262, 0, 65539, 1507320, 0, 65538, 1507321, 0, 65536, 1507322, 0, 196611, 1507327, 0, 65538, 1441792, 0, 65536, 1441793, 0, 65536, 1441794, 0, 65536, 1441795, 0, 65536, 1441796, 0, 65536, 1441797, 0, 65536, 1441798, 0, 2, 1441799, 0, 65536, 1441800, 0, 0 )
|
||||
tile_data = PoolIntArray( -524284, 0, 131073, -393224, 0, 131073, -393217, 0, 131073, -458748, 0, 65539, -458744, 0, 131073, -327689, 0, 65537, -327688, 0, 2, -327687, 0, 1, -327686, 0, 65536, -327685, 0, 196608, -327681, 0, 65539, -393212, 0, 65539, -393208, 0, 65539, -262153, 0, 65539, -262151, 0, 65539, -262149, 0, 65538, -262148, 0, 65536, -262147, 0, 1, -262146, 0, 65536, -262145, 0, 2, -327680, 0, 65536, -327679, 0, 65536, -327678, 0, 1, -327677, 0, 65536, -327676, 0, 2, -327675, 0, 65536, -327674, 0, 65536, -327673, 0, 65536, -327672, 0, 131074, -196617, 0, 65539, -196615, 0, 131075, -196611, 0, 131075, -262142, 0, 65539, -262136, 0, 65539, -131081, 0, 65538, -131080, 0, 196608, -196606, 0, 65539, -196600, 0, 65539, -65544, 0, 131075, -131070, 0, 131075, -131066, 0, 65537, -131065, 0, 65536, -131064, 0, 196611, -65530, 0, 65539, 6, 0, 65539, 65542, 0, 65539, 131078, 0, 65539, 196614, 0, 65539, 327676, 0, 131073, 262146, 0, 131073, 262150, 0, 65539, 262154, 0, 131073, 262160, 0, 131073, 393212, 0, 65539, 327682, 0, 65539, 327686, 0, 65539, 327690, 0, 65539, 327696, 0, 65539, 458747, 0, 65537, 458748, 0, 2, 458749, 0, 65536, 458750, 0, 65536, 458751, 0, 65536, 393216, 0, 65536, 393217, 0, 65536, 393218, 0, 2, 393219, 0, 65536, 393220, 0, 65536, 393221, 0, 65536, 393222, 0, 196610, 393223, 0, 65536, 393224, 0, 65536, 393225, 0, 65536, 393226, 0, 2, 393227, 0, 65536, 393228, 0, 65536, 393229, 0, 65536, 393230, 0, 65536, 393231, 0, 65536, 393232, 0, 2, 393233, 0, 196608, 524283, 0, 65539, 458758, 0, 65539, 458769, 0, 65539, 589819, 0, 65539, 524294, 0, 65539, 524305, 0, 65539, 655355, 0, 65538, 655356, 0, 1, 655357, 0, 65536, 655358, 0, 65536, 655359, 0, 65536, 589824, 0, 65536, 589825, 0, 65536, 589826, 0, 1, 589827, 0, 65536, 589828, 0, 65536, 589829, 0, 65536, 589830, 0, 196610, 589831, 0, 65536, 589832, 0, 65536, 589833, 0, 65536, 589834, 0, 1, 589835, 0, 65536, 589836, 0, 65536, 589837, 0, 65536, 589838, 0, 65536, 589839, 0, 65536, 589840, 0, 1, 589841, 0, 196611, 720892, 0, 65539, 655362, 0, 65539, 655366, 0, 65539, 655370, 0, 65539, 655376, 0, 65539, 786428, 0, 131075, 720898, 0, 131075, 720902, 0, 65539, 720906, 0, 131075, 720912, 0, 131075, 786438, 0, 65539, 851974, 0, 65539, 917510, 0, 65539, 983046, 0, 65539, 1048582, 0, 65539, 1179640, 0, 131073, 1114113, 0, 131073, 1114118, 0, 65539, 1245176, 0, 65538, 1245177, 0, 65536, 1245178, 0, 65536, 1245179, 0, 65536, 1245180, 0, 65536, 1245181, 0, 65536, 1245182, 0, 65536, 1245183, 0, 65536, 1179648, 0, 65536, 1179649, 0, 2, 1179650, 0, 65536, 1179651, 0, 65536, 1179652, 0, 65536, 1179653, 0, 65536, 1179654, 0, 131074, 1245190, 0, 65539, 1310726, 0, 65539, 1441784, 0, 65537, 1441785, 0, 65536, 1441786, 0, 65536, 1441787, 0, 65536, 1441788, 0, 65536, 1441789, 0, 65536, 1441790, 0, 65536, 1441791, 0, 65536, 1376256, 0, 65536, 1376257, 0, 65536, 1376258, 0, 1, 1376259, 0, 65536, 1376260, 0, 65536, 1376261, 0, 65536, 1376262, 0, 2, 1376263, 0, 65536, 1376264, 0, 196608, 1507320, 0, 131075, 1441794, 0, 131075, 1441800, 0, 131075 )
|
||||
|
||||
[node name="floor" type="TileMap" parent="."]
|
||||
z_index = 3
|
||||
|
@ -191,219 +191,256 @@ position = Vector2( -320, -96 )
|
|||
|
||||
[node name="ElectricSocket" parent="objects" instance=ExtResource( 14 )]
|
||||
position = Vector2( -288, -160 )
|
||||
z_index = -8
|
||||
direction = 0
|
||||
connectionPaths = [ NodePath("../SMES1") ]
|
||||
|
||||
[node name="ElectricSocket2" parent="objects" instance=ExtResource( 14 )]
|
||||
position = Vector2( -288, -128 )
|
||||
z_index = -8
|
||||
direction = 0
|
||||
connectionPaths = [ NodePath("../SMES2") ]
|
||||
|
||||
[node name="ElectricSocket3" parent="objects" instance=ExtResource( 14 )]
|
||||
position = Vector2( -288, -192 )
|
||||
z_index = -8
|
||||
direction = 0
|
||||
connectionPaths = [ NodePath("../SMES3") ]
|
||||
|
||||
[node name="ElectricSocket4" parent="objects" instance=ExtResource( 14 )]
|
||||
position = Vector2( -288, -96 )
|
||||
z_index = -8
|
||||
direction = 0
|
||||
connectionPaths = [ NodePath("../SMES4") ]
|
||||
|
||||
[node name="ElectricSocket5" parent="objects" instance=ExtResource( 14 )]
|
||||
position = Vector2( 320, 128 )
|
||||
z_index = -8
|
||||
connectionPaths = [ NodePath("../../lights/Lighttube2") ]
|
||||
flow = 1
|
||||
|
||||
[node name="ElectricSocket34" parent="objects" instance=ExtResource( 14 )]
|
||||
position = Vector2( 384, 192 )
|
||||
direction = 1
|
||||
connectionPaths = [ NodePath("../BridgeDoor") ]
|
||||
flow = 1
|
||||
|
||||
[node name="ElectricSocket36" parent="objects" instance=ExtResource( 14 )]
|
||||
position = Vector2( 0, 192 )
|
||||
direction = 0
|
||||
connectionPaths = [ NodePath("../EngineDoor") ]
|
||||
flow = 1
|
||||
|
||||
[node name="ElectricSocket37" parent="objects" instance=ExtResource( 14 )]
|
||||
position = Vector2( 0, 288 )
|
||||
direction = 0
|
||||
connectionPaths = [ NodePath("../EngineDoor2") ]
|
||||
flow = 1
|
||||
|
||||
[node name="ElectricSocket35" parent="objects" instance=ExtResource( 14 )]
|
||||
position = Vector2( 384, 288 )
|
||||
direction = 1
|
||||
connectionPaths = [ NodePath("../BridgeDoor2") ]
|
||||
flow = 1
|
||||
|
||||
[node name="ElectricSocket6" parent="objects" instance=ExtResource( 14 )]
|
||||
position = Vector2( 64, 128 )
|
||||
z_index = -8
|
||||
connectionPaths = [ NodePath("../../lights/Lighttube") ]
|
||||
flow = 1
|
||||
|
||||
[node name="ElectricSocket7" parent="objects" instance=ExtResource( 14 )]
|
||||
position = Vector2( 64, -64 )
|
||||
z_index = -8
|
||||
direction = 3
|
||||
connectionPaths = [ NodePath("../../lights/Lighttube9") ]
|
||||
flow = 1
|
||||
|
||||
[node name="ElectricSocket8" parent="objects" instance=ExtResource( 14 )]
|
||||
position = Vector2( 256, -64 )
|
||||
z_index = -8
|
||||
direction = 3
|
||||
connectionPaths = [ NodePath("../../lights/Lighttube10") ]
|
||||
flow = 1
|
||||
|
||||
[node name="ElectricSocket32" parent="objects" instance=ExtResource( 14 )]
|
||||
position = Vector2( 192, -32 )
|
||||
z_index = -8
|
||||
direction = 1
|
||||
connectionPaths = [ NodePath("../../lights/Lighttube16") ]
|
||||
flow = 1
|
||||
|
||||
[node name="ElectricSocket33" parent="objects" instance=ExtResource( 14 )]
|
||||
position = Vector2( 192, 96 )
|
||||
z_index = -8
|
||||
direction = 0
|
||||
connectionPaths = [ NodePath("../../lights/Lighttube15") ]
|
||||
flow = 1
|
||||
|
||||
[node name="ElectricSocket9" parent="objects" instance=ExtResource( 14 )]
|
||||
position = Vector2( 256, -224 )
|
||||
z_index = -8
|
||||
connectionPaths = [ NodePath("../../lights/Lighttube11") ]
|
||||
flow = 1
|
||||
|
||||
[node name="ElectricSocket42" parent="objects" instance=ExtResource( 14 )]
|
||||
position = Vector2( 128, -192 )
|
||||
connectionPaths = [ NodePath("../AirlockInt") ]
|
||||
flow = 1
|
||||
|
||||
[node name="ElectricSocket43" parent="objects" instance=ExtResource( 14 )]
|
||||
position = Vector2( 128, -256 )
|
||||
connectionPaths = [ NodePath("../AirlockExt") ]
|
||||
flow = 1
|
||||
|
||||
[node name="ElectricSocket10" parent="objects" instance=ExtResource( 14 )]
|
||||
position = Vector2( -32, -224 )
|
||||
z_index = -8
|
||||
direction = 0
|
||||
connectionPaths = [ NodePath("../../lights/Lighttube12") ]
|
||||
flow = 1
|
||||
|
||||
[node name="ElectricSocket44" parent="objects" instance=ExtResource( 14 )]
|
||||
position = Vector2( -96, -160 )
|
||||
direction = 0
|
||||
connectionPaths = [ NodePath("../StorageDoor") ]
|
||||
flow = 1
|
||||
|
||||
[node name="ElectricSocket45" parent="objects" instance=ExtResource( 14 )]
|
||||
position = Vector2( -96, -128 )
|
||||
direction = 0
|
||||
connectionPaths = [ NodePath("../StorageDoor2") ]
|
||||
flow = 1
|
||||
|
||||
[node name="ElectricSocket11" parent="objects" instance=ExtResource( 14 )]
|
||||
position = Vector2( -256, -224 )
|
||||
z_index = -8
|
||||
connectionPaths = [ NodePath("../../lights/Lighttube13") ]
|
||||
flow = 1
|
||||
|
||||
[node name="ElectricSocket12" parent="objects" instance=ExtResource( 14 )]
|
||||
position = Vector2( -256, -64 )
|
||||
z_index = -8
|
||||
direction = 3
|
||||
connectionPaths = [ NodePath("../../lights/Lighttube14") ]
|
||||
flow = 1
|
||||
|
||||
[node name="ElectricSocket13" parent="objects" instance=ExtResource( 14 )]
|
||||
position = Vector2( -128, 352 )
|
||||
z_index = -8
|
||||
direction = 3
|
||||
connectionPaths = [ NodePath("../../lights/Lighttube8") ]
|
||||
flow = 1
|
||||
|
||||
[node name="ElectricSocket14" parent="objects" instance=ExtResource( 14 )]
|
||||
position = Vector2( -128, 128 )
|
||||
z_index = -8
|
||||
connectionPaths = [ NodePath("../../lights/Lighttube7") ]
|
||||
flow = 1
|
||||
|
||||
[node name="ElectricSocket15" parent="objects" instance=ExtResource( 14 )]
|
||||
position = Vector2( -160, 192 )
|
||||
z_index = -8
|
||||
direction = 0
|
||||
connectionPaths = [ NodePath("../Computer4") ]
|
||||
flow = 1
|
||||
|
||||
[node name="ElectricSocket16" parent="objects" instance=ExtResource( 14 )]
|
||||
position = Vector2( -160, 288 )
|
||||
z_index = -8
|
||||
direction = 0
|
||||
connectionPaths = [ NodePath("../Computer2") ]
|
||||
flow = 1
|
||||
|
||||
[node name="ElectricSocket17" parent="objects" instance=ExtResource( 14 )]
|
||||
position = Vector2( -224, -128 )
|
||||
z_index = -8
|
||||
direction = 0
|
||||
connectionPaths = [ NodePath("../Computer3") ]
|
||||
flow = 1
|
||||
|
||||
[node name="ElectricSocket18" parent="objects" instance=ExtResource( 14 )]
|
||||
position = Vector2( -224, -160 )
|
||||
z_index = -8
|
||||
direction = 0
|
||||
connectionPaths = [ NodePath("../Computer") ]
|
||||
flow = 1
|
||||
|
||||
[node name="ElectricSocket19" parent="objects" instance=ExtResource( 14 )]
|
||||
position = Vector2( 544, 224 )
|
||||
z_index = -8
|
||||
direction = 1
|
||||
connectionPaths = [ NodePath("../CommsComp") ]
|
||||
flow = 1
|
||||
|
||||
[node name="ElectricSocket20" parent="objects" instance=ExtResource( 14 )]
|
||||
position = Vector2( 544, 256 )
|
||||
z_index = -8
|
||||
direction = 1
|
||||
connectionPaths = [ NodePath("../ControlComp") ]
|
||||
flow = 1
|
||||
|
||||
[node name="ElectricSocket21" parent="objects" instance=ExtResource( 14 )]
|
||||
position = Vector2( 512, 128 )
|
||||
z_index = -8
|
||||
connectionPaths = [ NodePath("../../lights/Lighttube6") ]
|
||||
flow = 1
|
||||
|
||||
[node name="ElectricSocket22" parent="objects" instance=ExtResource( 14 )]
|
||||
position = Vector2( 512, 352 )
|
||||
z_index = -8
|
||||
direction = 3
|
||||
connectionPaths = [ NodePath("../../lights/Lighttube5") ]
|
||||
flow = 1
|
||||
|
||||
[node name="ElectricSocket23" parent="objects" instance=ExtResource( 14 )]
|
||||
position = Vector2( 320, 352 )
|
||||
z_index = -8
|
||||
direction = 3
|
||||
connectionPaths = [ NodePath("../../lights/Lighttube3") ]
|
||||
flow = 1
|
||||
|
||||
[node name="ElectricSocket24" parent="objects" instance=ExtResource( 14 )]
|
||||
position = Vector2( 64, 352 )
|
||||
z_index = -8
|
||||
direction = 3
|
||||
connectionPaths = [ NodePath("../../lights/Lighttube4") ]
|
||||
flow = 1
|
||||
|
||||
[node name="ElectricSocket38" parent="objects" instance=ExtResource( 14 )]
|
||||
position = Vector2( -32, 576 )
|
||||
direction = 0
|
||||
connectionPaths = [ NodePath("../AirlockInt3") ]
|
||||
flow = 1
|
||||
|
||||
[node name="ElectricSocket39" parent="objects" instance=ExtResource( 14 )]
|
||||
position = Vector2( -128, 576 )
|
||||
direction = 0
|
||||
connectionPaths = [ NodePath("../AirlockExt3") ]
|
||||
flow = 1
|
||||
|
||||
[node name="ElectricSocket40" parent="objects" instance=ExtResource( 14 )]
|
||||
position = Vector2( -128, 672 )
|
||||
direction = 0
|
||||
connectionPaths = [ NodePath("../AirlockExt2") ]
|
||||
flow = 1
|
||||
|
||||
[node name="ElectricSocket41" parent="objects" instance=ExtResource( 14 )]
|
||||
position = Vector2( -32, 672 )
|
||||
direction = 0
|
||||
connectionPaths = [ NodePath("../AirlockInt2") ]
|
||||
flow = 1
|
||||
|
||||
[node name="ElectricSocket25" parent="objects" instance=ExtResource( 14 )]
|
||||
position = Vector2( 192, 384 )
|
||||
z_index = -8
|
||||
direction = 1
|
||||
connectionPaths = [ NodePath("../../lights/Lighttube17") ]
|
||||
flow = 1
|
||||
|
||||
[node name="ElectricSocket26" parent="objects" instance=ExtResource( 14 )]
|
||||
position = Vector2( 192, 512 )
|
||||
z_index = -8
|
||||
direction = 0
|
||||
connectionPaths = [ NodePath("../../lights/Lighttube18") ]
|
||||
flow = 1
|
||||
|
||||
[node name="ElectricSocket27" parent="objects" instance=ExtResource( 14 )]
|
||||
position = Vector2( 64, 704 )
|
||||
z_index = -8
|
||||
direction = 3
|
||||
connectionPaths = [ NodePath("../../lights/Lighttube22") ]
|
||||
flow = 1
|
||||
|
||||
[node name="ElectricSocket28" parent="objects" instance=ExtResource( 14 )]
|
||||
position = Vector2( 256, 704 )
|
||||
z_index = -8
|
||||
direction = 3
|
||||
connectionPaths = [ NodePath("../../lights/Lighttube20") ]
|
||||
flow = 1
|
||||
|
||||
[node name="ElectricSocket29" parent="objects" instance=ExtResource( 14 )]
|
||||
position = Vector2( 32, 544 )
|
||||
z_index = -8
|
||||
connectionPaths = [ NodePath("../../lights/Lighttube19") ]
|
||||
flow = 1
|
||||
|
||||
[node name="ElectricSocket30" parent="objects" instance=ExtResource( 14 )]
|
||||
position = Vector2( -256, 544 )
|
||||
z_index = -8
|
||||
connectionPaths = [ NodePath("../../lights/Lighttube21") ]
|
||||
flow = 1
|
||||
|
||||
[node name="ElectricSocket31" parent="objects" instance=ExtResource( 14 )]
|
||||
position = Vector2( -256, 704 )
|
||||
z_index = -8
|
||||
direction = 3
|
||||
connectionPaths = [ NodePath("../../lights/Lighttube23") ]
|
||||
flow = 1
|
||||
|
@ -418,84 +455,115 @@ __meta__ = {
|
|||
|
||||
[node name="Lighttube" parent="lights" instance=ExtResource( 8 )]
|
||||
position = Vector2( 80, 144 )
|
||||
direction = 3
|
||||
lit = true
|
||||
|
||||
[node name="Lighttube2" parent="lights" instance=ExtResource( 8 )]
|
||||
position = Vector2( 336, 144 )
|
||||
direction = 3
|
||||
lit = true
|
||||
|
||||
[node name="Lighttube3" parent="lights" instance=ExtResource( 8 )]
|
||||
position = Vector2( 336, 368 )
|
||||
direction = 2
|
||||
lit = true
|
||||
|
||||
[node name="Lighttube4" parent="lights" instance=ExtResource( 8 )]
|
||||
position = Vector2( 80, 368 )
|
||||
direction = 2
|
||||
lit = true
|
||||
|
||||
[node name="Lighttube7" parent="lights" instance=ExtResource( 8 )]
|
||||
position = Vector2( -112, 144 )
|
||||
direction = 3
|
||||
lit = true
|
||||
|
||||
[node name="Lighttube8" parent="lights" instance=ExtResource( 8 )]
|
||||
position = Vector2( -112, 368 )
|
||||
direction = 2
|
||||
lit = true
|
||||
|
||||
[node name="Lighttube5" parent="lights" instance=ExtResource( 8 )]
|
||||
position = Vector2( 528, 368 )
|
||||
direction = 2
|
||||
lit = true
|
||||
|
||||
[node name="Lighttube6" parent="lights" instance=ExtResource( 8 )]
|
||||
position = Vector2( 528, 144 )
|
||||
direction = 3
|
||||
lit = true
|
||||
|
||||
[node name="Lighttube9" parent="lights" instance=ExtResource( 8 )]
|
||||
position = Vector2( 80, -48 )
|
||||
direction = 2
|
||||
lit = true
|
||||
|
||||
[node name="Lighttube10" parent="lights" instance=ExtResource( 8 )]
|
||||
position = Vector2( 272, -48 )
|
||||
direction = 2
|
||||
lit = true
|
||||
|
||||
[node name="Lighttube11" parent="lights" instance=ExtResource( 8 )]
|
||||
position = Vector2( 272, -208 )
|
||||
direction = 3
|
||||
lit = true
|
||||
|
||||
[node name="Lighttube12" parent="lights" instance=ExtResource( 8 )]
|
||||
position = Vector2( -16, -208 )
|
||||
direction = 0
|
||||
lit = true
|
||||
|
||||
[node name="Lighttube13" parent="lights" instance=ExtResource( 8 )]
|
||||
position = Vector2( -240, -208 )
|
||||
direction = 3
|
||||
lit = true
|
||||
|
||||
[node name="Lighttube14" parent="lights" instance=ExtResource( 8 )]
|
||||
position = Vector2( -240, -48 )
|
||||
direction = 2
|
||||
lit = true
|
||||
|
||||
[node name="Lighttube15" parent="lights" instance=ExtResource( 8 )]
|
||||
position = Vector2( 208, 112 )
|
||||
direction = 0
|
||||
lit = true
|
||||
|
||||
[node name="Lighttube16" parent="lights" instance=ExtResource( 8 )]
|
||||
position = Vector2( 208, -16 )
|
||||
direction = 1
|
||||
lit = true
|
||||
|
||||
[node name="Lighttube17" parent="lights" instance=ExtResource( 8 )]
|
||||
position = Vector2( 208, 400 )
|
||||
direction = 1
|
||||
lit = true
|
||||
|
||||
[node name="Lighttube18" parent="lights" instance=ExtResource( 8 )]
|
||||
position = Vector2( 208, 528 )
|
||||
direction = 0
|
||||
lit = true
|
||||
|
||||
[node name="Lighttube19" parent="lights" instance=ExtResource( 8 )]
|
||||
position = Vector2( 48, 560 )
|
||||
direction = 3
|
||||
lit = true
|
||||
|
||||
[node name="Lighttube21" parent="lights" instance=ExtResource( 8 )]
|
||||
position = Vector2( -240, 560 )
|
||||
direction = 3
|
||||
lit = true
|
||||
|
||||
[node name="Lighttube23" parent="lights" instance=ExtResource( 8 )]
|
||||
position = Vector2( -240, 720 )
|
||||
direction = 2
|
||||
lit = true
|
||||
|
||||
[node name="Lighttube20" parent="lights" instance=ExtResource( 8 )]
|
||||
position = Vector2( 272, 720 )
|
||||
direction = 2
|
||||
lit = true
|
||||
|
||||
[node name="Lighttube22" parent="lights" instance=ExtResource( 8 )]
|
||||
position = Vector2( 80, 720 )
|
||||
direction = 2
|
||||
lit = true
|
||||
|
|
|
@ -36,6 +36,7 @@ __meta__ = {
|
|||
}
|
||||
|
||||
[node name="base" type="TileMap" parent="."]
|
||||
z_index = 1
|
||||
tile_set = ExtResource( 11 )
|
||||
cell_size = Vector2( 32, 32 )
|
||||
cell_quadrant_size = 32
|
||||
|
@ -44,6 +45,7 @@ format = 1
|
|||
tile_data = PoolIntArray( 262137, 0, 0, 262138, 0, 0, 262139, 0, 0, 262140, 0, 0, 262141, 0, 0, 262142, 0, 0, 262143, 0, 0, 196608, 0, 0, 196609, 0, 0, 196610, 0, 0, 196611, 0, 0, 196612, 0, 0, 196613, 0, 0, 196614, 0, 0, 196615, 0, 0, 196616, 0, 0, 196617, 0, 0, 196618, 0, 0, 196619, 0, 0, 196620, 0, 0, 196621, 0, 0, 196622, 0, 0, 196623, 0, 0, 196624, 0, 0, 196625, 0, 0, 196626, 0, 0, 196627, 0, 0, 327673, 0, 0, 327674, 0, 0, 327675, 0, 0, 327676, 0, 0, 327677, 0, 0, 327678, 0, 0, 327679, 0, 0, 262144, 0, 0, 262145, 0, 0, 262146, 0, 0, 262147, 0, 0, 262148, 0, 0, 262149, 0, 0, 262150, 0, 0, 262151, 0, 0, 262152, 0, 0, 262153, 0, 0, 262154, 0, 0, 262155, 0, 0, 262156, 0, 0, 262157, 0, 0, 262158, 0, 0, 262159, 0, 0, 262160, 0, 0, 262161, 0, 0, 262162, 0, 0, 262163, 0, 0, 393209, 0, 0, 393210, 0, 0, 393211, 0, 0, 393212, 0, 0, 393213, 0, 0, 393214, 0, 0, 393215, 0, 0, 327680, 0, 0, 327681, 0, 0, 327682, 0, 0, 327683, 0, 0, 327684, 0, 0, 327685, 0, 0, 327686, 0, 0, 327687, 0, 0, 327688, 0, 0, 327689, 0, 0, 327690, 0, 0, 327691, 0, 0, 327692, 0, 0, 327693, 0, 0, 327694, 0, 0, 327695, 0, 0, 327696, 0, 0, 327697, 0, 0, 327698, 0, 0, 327699, 0, 0, 458745, 0, 0, 458746, 0, 0, 458747, 0, 0, 458748, 0, 0, 458749, 0, 0, 458750, 0, 0, 458751, 0, 0, 393216, 0, 0, 393217, 0, 0, 393218, 0, 0, 393219, 0, 0, 393220, 0, 0, 393221, 0, 0, 393222, 0, 0, 393223, 0, 0, 393224, 0, 0, 393225, 0, 0, 393226, 0, 0, 393227, 0, 0, 393228, 0, 0, 393229, 0, 0, 393230, 0, 0, 393231, 0, 0, 393232, 0, 0, 393233, 0, 0, 393234, 0, 0, 393235, 0, 0, 524281, 0, 0, 524282, 0, 0, 524283, 0, 0, 524284, 0, 0, 524285, 0, 0, 524286, 0, 0, 524287, 0, 0, 458752, 0, 0, 458753, 0, 0, 458754, 0, 0, 458755, 0, 0, 458756, 0, 0, 458757, 0, 0, 458758, 0, 0, 458759, 0, 0, 458760, 0, 0, 458761, 0, 0, 458762, 0, 0, 458763, 0, 0, 458764, 0, 0, 458765, 0, 0, 458766, 0, 0, 458767, 0, 0, 458768, 0, 0, 458769, 0, 0, 458770, 0, 0, 458771, 0, 0, 589817, 0, 0, 589818, 0, 0, 589819, 0, 0, 589820, 0, 0, 589821, 0, 0, 589822, 0, 0, 589823, 0, 0, 524288, 0, 0, 524289, 0, 0, 524290, 0, 0, 524291, 0, 0, 524292, 0, 0, 524293, 0, 0, 524294, 0, 0, 524295, 0, 0, 524296, 0, 0, 524297, 0, 0, 524298, 0, 0, 524299, 0, 0, 524300, 0, 0, 524301, 0, 0, 524302, 0, 0, 524303, 0, 0, 524304, 0, 0, 524305, 0, 0, 524306, 0, 0, 524307, 0, 0, 655353, 0, 0, 655354, 0, 0, 655355, 0, 0, 655356, 0, 0, 655357, 0, 0, 655358, 0, 0, 655359, 0, 0, 589824, 0, 0, 589825, 0, 0, 589826, 0, 0, 589827, 0, 0, 589828, 0, 0, 589829, 0, 0, 589830, 0, 0, 589831, 0, 0, 589832, 0, 0, 589833, 0, 0, 589834, 0, 0, 589835, 0, 0, 589836, 0, 0, 589837, 0, 0, 589838, 0, 0, 589839, 0, 0, 589840, 0, 0, 589841, 0, 0, 589842, 0, 0, 589843, 0, 0, 720889, 0, 0, 720890, 0, 0, 720891, 0, 0, 720892, 0, 0, 720893, 0, 0, 720894, 0, 0, 720895, 0, 0, 655360, 0, 0, 655361, 0, 0, 655362, 0, 0, 655363, 0, 0, 655364, 0, 0, 655365, 0, 0, 655366, 0, 0, 655367, 0, 0, 655368, 0, 0, 655369, 0, 0, 655370, 0, 0, 655371, 0, 0, 655372, 0, 0, 655373, 0, 0, 655374, 0, 0, 655375, 0, 0, 655376, 0, 0, 655377, 0, 0, 655378, 0, 0, 655379, 0, 0, 786425, 0, 0, 786426, 0, 0, 786427, 0, 0, 786428, 0, 0, 786429, 0, 0, 786430, 0, 0, 786431, 0, 0, 720896, 0, 0, 720897, 0, 0, 720898, 0, 0, 720899, 0, 0, 720900, 0, 0, 720901, 0, 0, 720902, 0, 0, 720903, 0, 0, 720904, 0, 0, 720905, 0, 0, 720906, 0, 0, 720907, 0, 0, 720908, 0, 0, 720909, 0, 0, 720910, 0, 0, 720911, 0, 0, 720912, 0, 0, 720913, 0, 0, 720914, 0, 0, 720915, 0, 0, 851961, 0, 0, 851962, 0, 0, 851963, 0, 0, 851964, 0, 0, 851965, 0, 0, 851966, 0, 0, 851967, 0, 0, 786432, 0, 0, 786433, 0, 0, 786434, 0, 0, 786435, 0, 0, 786436, 0, 0, 786437, 0, 0, 786438, 0, 0, 786439, 0, 0, 786440, 0, 0, 786441, 0, 0, 786442, 0, 0, 786443, 0, 0, 786444, 0, 0, 786445, 0, 0, 786446, 0, 0, 786447, 0, 0, 786448, 0, 0, 786449, 0, 0, 786450, 0, 0, 786451, 0, 0 )
|
||||
|
||||
[node name="cables" type="TileMap" parent="."]
|
||||
z_index = 2
|
||||
tile_set = ExtResource( 4 )
|
||||
cell_size = Vector2( 32, 32 )
|
||||
cell_quadrant_size = 32
|
||||
|
@ -52,6 +54,7 @@ format = 1
|
|||
tile_data = PoolIntArray( 393212, 0, 131072, 393213, 0, 65536, 393214, 0, 65536, 393215, 0, 65536, 327680, 0, 65536, 327681, 0, 65536, 327682, 0, 65536, 327683, 0, 65536, 327684, 0, 262144 )
|
||||
|
||||
[node name="floor" type="TileMap" parent="."]
|
||||
z_index = 3
|
||||
tile_set = ExtResource( 9 )
|
||||
cell_size = Vector2( 32, 32 )
|
||||
cell_quadrant_size = 32
|
||||
|
@ -59,6 +62,7 @@ occluder_light_mask = -2147483647
|
|||
format = 1
|
||||
|
||||
[node name="walls" type="TileMap" parent="."]
|
||||
z_index = 4
|
||||
tile_set = ExtResource( 1 )
|
||||
cell_size = Vector2( 32, 32 )
|
||||
cell_quadrant_size = 32
|
||||
|
@ -69,6 +73,7 @@ script = ExtResource( 3 )
|
|||
extended_tilemap_node = NodePath("../1x1")
|
||||
|
||||
[node name="1x1" type="TileMap" parent="."]
|
||||
z_index = 5
|
||||
tile_set = ExtResource( 2 )
|
||||
cell_size = Vector2( 16, 16 )
|
||||
format = 1
|
||||
|
@ -93,6 +98,7 @@ position = Vector2( -320, 96 )
|
|||
direction = 0
|
||||
|
||||
[node name="objects" type="Node2D" parent="."]
|
||||
z_index = 10
|
||||
__meta__ = {
|
||||
"_editor_description_": ""
|
||||
}
|
||||
|
@ -129,41 +135,49 @@ computer_type = 6
|
|||
|
||||
[node name="ElectricSocket4" parent="objects" instance=ExtResource( 13 )]
|
||||
position = Vector2( -128, 160 )
|
||||
z_index = -8
|
||||
connectionPaths = [ NodePath("../Computer6") ]
|
||||
flow = 1
|
||||
|
||||
[node name="ElectricSocket5" parent="objects" instance=ExtResource( 13 )]
|
||||
position = Vector2( -96, 160 )
|
||||
z_index = -8
|
||||
connectionPaths = [ NodePath("../Computer5") ]
|
||||
flow = 1
|
||||
|
||||
[node name="ElectricSocket6" parent="objects" instance=ExtResource( 13 )]
|
||||
position = Vector2( -64, 160 )
|
||||
z_index = -8
|
||||
connectionPaths = [ NodePath("../Computer") ]
|
||||
flow = 1
|
||||
|
||||
[node name="ElectricSocket7" parent="objects" instance=ExtResource( 13 )]
|
||||
position = Vector2( -32, 160 )
|
||||
z_index = -8
|
||||
connectionPaths = [ NodePath("../Computer2") ]
|
||||
flow = 1
|
||||
|
||||
[node name="ElectricSocket8" parent="objects" instance=ExtResource( 13 )]
|
||||
position = Vector2( 0, 160 )
|
||||
z_index = -8
|
||||
connectionPaths = [ NodePath("../Computer3") ]
|
||||
flow = 1
|
||||
|
||||
[node name="ElectricSocket9" parent="objects" instance=ExtResource( 13 )]
|
||||
position = Vector2( 32, 160 )
|
||||
z_index = -8
|
||||
connectionPaths = [ NodePath("../Computer4") ]
|
||||
flow = 1
|
||||
|
||||
[node name="ElectricSocket10" parent="objects" instance=ExtResource( 13 )]
|
||||
position = Vector2( 64, 160 )
|
||||
z_index = -8
|
||||
connectionPaths = [ NodePath("../Computer7") ]
|
||||
flow = 1
|
||||
|
||||
[node name="ElectricSocket3" parent="objects" instance=ExtResource( 13 )]
|
||||
position = Vector2( 128, 160 )
|
||||
z_index = -8
|
||||
connectionPaths = [ NodePath("../SMES2") ]
|
||||
|
||||
[node name="lights" type="Node2D" parent="."]
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
[gd_scene load_steps=3 format=2]
|
||||
|
||||
[ext_resource path="res://Scenes/UI/SpaceMap.tscn" type="PackedScene" id=1]
|
||||
[ext_resource path="res://Scenes/ui.gd" type="Script" id=2]
|
||||
[ext_resource path="res://Scenes/UI.gd" type="Script" id=2]
|
||||
|
||||
[node name="ui" type="Control"]
|
||||
anchor_right = 1.0
|
Reference in a new issue