mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-15 15:33:46 +00:00
Lightbridge collisions
This commit is contained in:
parent
b9b0c4d960
commit
c1b498fa82
4 changed files with 44 additions and 46 deletions
|
|
@ -1,4 +1,4 @@
|
|||
[gd_scene load_steps=13 format=3 uid="uid://d0j1bmgbefyp2"]
|
||||
[gd_scene load_steps=12 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"]
|
||||
|
|
@ -24,11 +24,8 @@ 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
|
||||
[node name="LightBridge" type="Area2D"]
|
||||
collision_layer = 0
|
||||
collision_mask = 154
|
||||
script = ExtResource("1_faieq")
|
||||
metadata/_edit_group_ = true
|
||||
|
|
@ -44,8 +41,8 @@ TurnOffMaterial = SubResource("ShaderMaterial_25105")
|
|||
ActiveMaterial = ExtResource("3_oo6b5")
|
||||
|
||||
[node name="CollisionShape2D" type="CollisionShape2D" parent="." node_paths=PackedStringArray("_door")]
|
||||
visible = false
|
||||
shape = SubResource("RectangleShape2D_0wg11")
|
||||
disabled = true
|
||||
script = ExtResource("3_hctcd")
|
||||
_door = NodePath("..")
|
||||
|
||||
|
|
@ -57,14 +54,3 @@ 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