Added controlable movement platform

This commit is contained in:
2026-06-19 22:03:35 +03:00
parent 2b12373ed8
commit 24481b1f33
6 changed files with 68 additions and 28 deletions
+2
View File
@@ -8,3 +8,5 @@ func _ready() -> void:
$Objects/LeverPlatform.switching.connect($Platforms/ColorSwitchingPlatform.toggle)
$Objects/LeverPlatform.switching.connect($ConnectionCables/ConnectionCablePlatform.toggle)
$Objects/LeverMoving.switching.connect($Platforms/SelfMovingPlatform.toggle)
+20
View File
@@ -6,6 +6,7 @@
[ext_resource type="PackedScene" uid="uid://dq3080605jqta" path="res://game/objects/interactive/connection_cable.tscn" id="3_a50fq"]
[ext_resource type="PackedScene" uid="uid://b3kyqvuxmfn8f" path="res://game/objects/decorative/fireplace.tscn" id="3_tuvkr"]
[ext_resource type="PackedScene" uid="uid://jab32eoyc523" path="res://game/platform/moving_platform.tscn" id="4_h1708"]
[ext_resource type="Shader" uid="uid://dbsrm43wcolg4" path="res://game/shaders/connection_cable.gdshader" id="4_lxcjr"]
[ext_resource type="PackedScene" uid="uid://g0n5npbt3hb2" path="res://game/doors/circle_door.tscn" id="4_yrqjd"]
[ext_resource type="PackedScene" uid="uid://cojxqx5al7kyv" path="res://game/doors/locked_door.tscn" id="5_1skah"]
[ext_resource type="PackedScene" uid="uid://bwmd8w677p7k3" path="res://game/platform/color_switching_platform.tscn" id="5_a50fq"]
@@ -26,6 +27,20 @@
[ext_resource type="PackedScene" uid="uid://cutjutvd8dqqc" path="res://game/characters/enemies/black_cultist.tscn" id="19_ohfy3"]
[ext_resource type="PackedScene" uid="uid://bv2gahb4wxgb1" path="res://game/characters/enemies/white_cultist.tscn" id="20_rt0xo"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_lxcjr"]
resource_local_to_scene = true
shader = ExtResource("4_lxcjr")
shader_parameter/glow_interval = 1.0
shader_parameter/glow_radius = 1.0
shader_parameter/travel_time = 5.0
[sub_resource type="ShaderMaterial" id="ShaderMaterial_te8eb"]
resource_local_to_scene = true
shader = ExtResource("4_lxcjr")
shader_parameter/glow_interval = 1.0
shader_parameter/glow_radius = 1.0
shader_parameter/travel_time = 5.0
[sub_resource type="Curve2D" id="Curve2D_h1708"]
_data = {
"points": PackedVector2Array(0, 0, 0, 0, 229, -75, 0, 0, 0, 0, 47, -75)
@@ -36,10 +51,12 @@ point_count = 2
script = ExtResource("2_a2sw7")
[node name="ConnectionCableDoor" parent="ConnectionCables" parent_id_path=PackedInt32Array(279521385) index="0" unique_id=1234500644 instance=ExtResource("3_a50fq")]
material = SubResource("ShaderMaterial_lxcjr")
position = Vector2(208, 13)
points = PackedVector2Array(0, 0, 92, 0, 92, -49, 199, -49)
[node name="ConnectionCablePlatform" parent="ConnectionCables" parent_id_path=PackedInt32Array(279521385) index="1" unique_id=561577961 instance=ExtResource("3_a50fq")]
material = SubResource("ShaderMaterial_te8eb")
position = Vector2(520, -35)
points = PackedVector2Array(0, 0, 0, -76, -454, -76, -454, 3)
@@ -113,6 +130,9 @@ position = Vector2(208, 8)
[node name="LeverPlatform" parent="Objects" parent_id_path=PackedInt32Array(1320033435) index="6" unique_id=705939742 instance=ExtResource("13_00l78")]
position = Vector2(520, -40)
[node name="LeverMoving" parent="Objects" parent_id_path=PackedInt32Array(1320033435) index="7" unique_id=1003631621 instance=ExtResource("13_00l78")]
position = Vector2(155, 8)
[node name="BookPickup" parent="Pickups" parent_id_path=PackedInt32Array(1113969064) index="0" unique_id=261982174 instance=ExtResource("7_fq0h3")]
position = Vector2(1216, 86)