mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-07-06 12:51: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
70
Scenes/Actors/Lightbridge.tscn
Normal file
70
Scenes/Actors/Lightbridge.tscn
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
[gd_scene load_steps=13 format=3 uid="uid://d0j1bmgbefyp2"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://dwry0643yvdiv" path="res://Scripts/Door.cs" id="1_faieq"]
|
||||
[ext_resource type="Shader" uid="uid://0ruey5bjl7mh" path="res://Shaders/Blink.gdshader" id="2_25105"]
|
||||
[ext_resource type="Script" uid="uid://crpkvxepkcrir" path="res://Scripts/Components/Actors/ForceFieldCollisionDisabler.cs" id="3_hctcd"]
|
||||
[ext_resource type="Script" uid="uid://cwnfsmogt11mn" path="res://Scripts/Components/Actors/LightBridgeSpriteComponent.cs" id="3_hg05y"]
|
||||
[ext_resource type="Material" uid="uid://cdaeormgf78de" path="res://Resources/Materials/Static_Scanlines.tres" id="3_oo6b5"]
|
||||
[ext_resource type="AudioStream" uid="uid://ciuv2acfujlys" path="res://SFX/Artninja_Forcefield_Enable.wav" id="5_hwweb"]
|
||||
[ext_resource type="AudioStream" uid="uid://ccxjo86nvcl54" path="res://SFX/Artninja_Forcefield_Disable.wav" id="6_v0863"]
|
||||
|
||||
[sub_resource type="Gradient" id="Gradient_cub4j"]
|
||||
colors = PackedColorArray(1, 1, 1, 1, 1, 1, 1, 1)
|
||||
|
||||
[sub_resource type="GradientTexture1D" id="GradientTexture1D_hctcd"]
|
||||
gradient = SubResource("Gradient_cub4j")
|
||||
|
||||
[sub_resource type="ShaderMaterial" id="ShaderMaterial_25105"]
|
||||
shader = ExtResource("2_25105")
|
||||
shader_parameter/blink_color = Color(0, 0, 0, 1)
|
||||
shader_parameter/blink_intensity = 0.0
|
||||
shader_parameter/teleport_progress = 0.0
|
||||
shader_parameter/scanline_density = 50.0
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_0wg11"]
|
||||
size = Vector2(32, 32)
|
||||
|
||||
[sub_resource type="RectangleShape2D" id="RectangleShape2D_hctcd"]
|
||||
size = Vector2(21, 178)
|
||||
|
||||
[node name="LightBridge" type="Area2D" groups=["Solid"]]
|
||||
collision_layer = 64
|
||||
collision_mask = 154
|
||||
script = ExtResource("1_faieq")
|
||||
metadata/_edit_group_ = true
|
||||
|
||||
[node name="Sprite2D" type="Sprite2D" parent="."]
|
||||
modulate = Color(0.686275, 1, 1, 0.529412)
|
||||
material = ExtResource("3_oo6b5")
|
||||
position = Vector2(-4.76837e-07, 9.53674e-07)
|
||||
scale = Vector2(0.125, -32)
|
||||
texture = SubResource("GradientTexture1D_hctcd")
|
||||
script = ExtResource("3_hg05y")
|
||||
TurnOffMaterial = SubResource("ShaderMaterial_25105")
|
||||
ActiveMaterial = ExtResource("3_oo6b5")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="." node_paths=PackedStringArray("_door")]
|
||||
visible = false
|
||||
shape = SubResource("RectangleShape2D_0wg11")
|
||||
script = ExtResource("3_hctcd")
|
||||
_door = NodePath("..")
|
||||
|
||||
[node name="ActivationSound" type="AudioStreamPlayer2D" parent="."]
|
||||
position = Vector2(0, 1)
|
||||
stream = ExtResource("5_hwweb")
|
||||
max_distance = 200.0
|
||||
|
||||
[node name="DeactivationSound" type="AudioStreamPlayer2D" parent="."]
|
||||
stream = ExtResource("6_v0863")
|
||||
max_distance = 200.0
|
||||
|
||||
[node name="AcidArea" type="Area2D" parent="." groups=["Acid"]]
|
||||
collision_layer = 256
|
||||
collision_mask = 0
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="AcidArea" node_paths=PackedStringArray("_door")]
|
||||
position = Vector2(-0.5, 0)
|
||||
shape = SubResource("RectangleShape2D_hctcd")
|
||||
script = ExtResource("3_hctcd")
|
||||
_door = NodePath("../..")
|
||||
Invert = true
|
||||
Loading…
Add table
Add a link
Reference in a new issue