mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-07-05 03:21:17 +00:00
Modularized doors and lightbridges
This commit is contained in:
parent
1a24711984
commit
1a5bd1b6d8
27 changed files with 513 additions and 346 deletions
|
|
@ -1,9 +1,11 @@
|
|||
[gd_scene load_steps=24 format=3 uid="uid://l84on3kv2s52"]
|
||||
[gd_scene load_steps=26 format=3 uid="uid://l84on3kv2s52"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dwry0643yvdiv" path="res://Scripts/Door.cs" id="1_emfh4"]
|
||||
[ext_resource type="Texture2D" uid="uid://d4ialp36plt7v" path="res://Sprites/Actors/Doors/horizontal_door_1.png" id="2_2h3ih"]
|
||||
[ext_resource type="Texture2D" uid="uid://desg0e2phtw50" path="res://Sprites/HorizontalDoor.png" id="2_rnx3o"]
|
||||
[ext_resource type="Script" uid="uid://bbuhaam28lwld" path="res://Scripts/Components/Actors/DoorSpriteComponent.cs" id="3_spifk"]
|
||||
[ext_resource type="AudioStream" uid="uid://dmsnvo8kdjyt8" path="res://SFX/517603__gurkboll__sony_dat_tcd-d10_pro_door_close.wav" id="4_4t32u"]
|
||||
[ext_resource type="Script" uid="uid://crpkvxepkcrir" path="res://Scripts/Components/Actors/ForceFieldCollisionDisabler.cs" id="4_nw4l4"]
|
||||
[ext_resource type="AudioStream" uid="uid://p5n7ijw2qvxy" path="res://SFX/517603__gurkboll__sony_dat_tcd-d10_pro_door_open.wav" id="5_spifk"]
|
||||
|
||||
[sub_resource type="AtlasTexture" id="AtlasTexture_2qgx7"]
|
||||
|
|
@ -155,19 +157,24 @@ metadata/_edit_group_ = true
|
|||
[node name="AnimatedSprite2D" type="AnimatedSprite2D" parent="."]
|
||||
sprite_frames = SubResource("SpriteFrames_keeml")
|
||||
animation = &"Closed"
|
||||
script = ExtResource("3_spifk")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="."]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="." node_paths=PackedStringArray("_door")]
|
||||
visible = false
|
||||
shape = SubResource("RectangleShape2D_0wg11")
|
||||
script = ExtResource("4_nw4l4")
|
||||
_door = NodePath("..")
|
||||
|
||||
[node name="RigidBody2D" type="RigidBody2D" parent="."]
|
||||
collision_layer = 64
|
||||
collision_mask = 10
|
||||
gravity_scale = 0.0
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D"]
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="RigidBody2D" node_paths=PackedStringArray("_door")]
|
||||
visible = false
|
||||
shape = SubResource("RectangleShape2D_f2rl6")
|
||||
script = ExtResource("4_nw4l4")
|
||||
_door = NodePath("../..")
|
||||
|
||||
[node name="DoorFrame" type="AnimatedSprite2D" parent="."]
|
||||
z_index = 1
|
||||
|
|
@ -181,5 +188,3 @@ max_distance = 200.0
|
|||
[node name="DeactivationSound" type="AudioStreamPlayer2D" parent="."]
|
||||
stream = ExtResource("5_spifk")
|
||||
max_distance = 200.0
|
||||
|
||||
[connection signal="animation_changed" from="AnimatedSprite2D" to="." method="_on_animated_sprite_2d_animation_changed"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue