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

97 lines
2.7 KiB
Text
Raw Permalink Normal View History

2020-07-23 12:21:27 +00:00
[gd_scene load_steps=14 format=2]
2020-07-06 16:41:30 +00:00
[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]
2020-07-07 07:40:20 +00:00
[ext_resource path="res://Actors/Components/ActivationRange.gd" type="Script" id=3]
[ext_resource path="res://Actors/Components/PowerManager.gd" type="Script" id=4]
2020-07-06 16:41:30 +00:00
2020-07-07 18:42:22 +00:00
[sub_resource type="RectangleShape2D" id=1]
extents = Vector2( 16, 16 )
[sub_resource type="AtlasTexture" id=2]
2020-07-06 16:41:30 +00:00
atlas = ExtResource( 2 )
region = Rect2( 0, 64, 32, 32 )
2020-07-07 18:42:22 +00:00
[sub_resource type="AtlasTexture" id=3]
2020-07-06 16:41:30 +00:00
atlas = ExtResource( 2 )
region = Rect2( 32, 32, 32, 32 )
2020-07-07 18:42:22 +00:00
[sub_resource type="AtlasTexture" id=4]
2020-07-06 16:41:30 +00:00
atlas = ExtResource( 2 )
region = Rect2( 0, 32, 32, 32 )
2020-07-07 18:42:22 +00:00
[sub_resource type="AtlasTexture" id=5]
2020-07-06 16:41:30 +00:00
atlas = ExtResource( 2 )
region = Rect2( 32, 0, 32, 32 )
2020-07-07 18:42:22 +00:00
[sub_resource type="AtlasTexture" id=6]
2020-07-06 16:41:30 +00:00
atlas = ExtResource( 2 )
region = Rect2( 0, 0, 32, 32 )
2020-07-07 18:42:22 +00:00
[sub_resource type="SpriteFrames" id=7]
2020-07-06 16:41:30 +00:00
animations = [ {
2020-07-07 18:42:22 +00:00
"frames": [ SubResource( 2 ), SubResource( 3 ), SubResource( 4 ), SubResource( 5 ), SubResource( 6 ) ],
2020-07-06 16:41:30 +00:00
"loop": false,
"name": "close",
"speed": 20.0
}, {
2020-07-07 18:42:22 +00:00
"frames": [ SubResource( 6 ), SubResource( 5 ), SubResource( 4 ), SubResource( 3 ), SubResource( 2 ) ],
2020-07-06 16:41:30 +00:00
"loop": false,
"name": "open",
"speed": 20.0
} ]
2020-07-07 07:40:20 +00:00
[sub_resource type="CircleShape2D" id=8]
2020-07-23 12:21:27 +00:00
radius = 42.0
[sub_resource type="CircleShape2D" id=9]
radius = 18.0
2020-07-07 07:40:20 +00:00
2020-07-06 19:58:42 +00:00
[node name="Door" type="StaticBody2D"]
2020-07-06 16:41:30 +00:00
input_pickable = true
2020-07-23 12:21:27 +00:00
collision_layer = 19
2020-07-06 16:41:30 +00:00
script = ExtResource( 1 )
2020-07-07 18:42:22 +00:00
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
position = Vector2( 16, 16 )
shape = SubResource( 1 )
2020-07-06 16:41:30 +00:00
[node name="Sprite" type="AnimatedSprite" parent="."]
2020-07-07 18:42:22 +00:00
frames = SubResource( 7 )
2020-07-06 16:41:30 +00:00
animation = "close"
frame = 4
playing = true
centered = false
2020-07-06 22:09:45 +00:00
[node name="Timer" type="Timer" parent="."]
wait_time = 5.0
one_shot = true
2020-07-07 07:40:20 +00:00
[node name="ActivationRange" type="Area2D" parent="."]
2020-07-22 15:34:04 +00:00
input_pickable = false
2020-07-07 07:40:20 +00:00
script = ExtResource( 3 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="ActivationRange"]
2020-07-23 12:21:27 +00:00
visible = false
2020-07-07 07:40:20 +00:00
position = Vector2( 16, 16 )
shape = SubResource( 8 )
[node name="CloseRange" type="Area2D" parent="."]
2020-07-22 15:34:04 +00:00
input_pickable = false
script = ExtResource( 3 )
[node name="CollisionShape2D" type="CollisionShape2D" parent="CloseRange"]
position = Vector2( 16, 16 )
2020-07-23 12:21:27 +00:00
shape = SubResource( 9 )
[node name="PowerManager" type="Node" parent="."]
script = ExtResource( 4 )
power_usage = 2.0
2020-07-20 13:04:56 +00:00
[node name="AudioStreamPlayer2D" type="AudioStreamPlayer2D" parent="."]
max_distance = 512.0
attenuation = 3.0
2020-07-06 16:41:30 +00:00
[connection signal="animation_finished" from="Sprite" to="." method="_animation_finished"]
2020-07-06 22:09:45 +00:00
[connection signal="timeout" from="Timer" to="." method="_close_timer_triggered"]
[connection signal="player_entered" from="CloseRange" to="." method="_open_sensor_triggered"]