[gd_scene load_steps=8 format=3 uid="uid://cpbaoqfc2kq80"]

[ext_resource type="Script" uid="uid://decr4caey82gc" path="res://_props/move_plateform/path_drive_move_plateform/path_drive_move_plateform.gd" id="1_ouylf"]
[ext_resource type="PackedScene" uid="uid://csdxpv8gefpec" path="res://_props/_prefabs/plateform/movable_plateform.tscn" id="2_yo6tx"]
[ext_resource type="Texture2D" uid="uid://c673bap4b12fx" path="res://icon.svg" id="3_l54kj"]
[ext_resource type="PackedScene" uid="uid://bonrls3iuhdqb" path="res://_props/_prefabs/player/player_trigger_volumn.tscn" id="4_ylwpt"]

[sub_resource type="RectangleShape2D" id="RectangleShape2D_82l4y"]
size = Vector2(120, 120)

[sub_resource type="RectangleShape2D" id="RectangleShape2D_k2ua5"]
size = Vector2(130, 130)

[sub_resource type="Curve2D" id="Curve2D_yo6tx"]
_data = {
"points": PackedVector2Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 100, 0)
}
point_count = 2

[node name="PathDriveMovePlateform" type="Node2D" node_paths=PackedStringArray("path2d", "plateform", "player_trigger")]
script = ExtResource("1_ouylf")
path2d = NodePath("Path2D")
plateform = NodePath("MovablePlateform")
player_trigger = NodePath("MovablePlateform/PlayerTriggerVolumn")
move_speed = 1200.0
returning_speed = 300.0
acceleration = 1600.0

[node name="MovablePlateform" parent="." node_paths=PackedStringArray("shaking_target") instance=ExtResource("2_yo6tx")]
shaking_target = NodePath("Sprite2D")
shake_strength = 1.0
shake_duration = 1.0
shake_hz = 48.0

[node name="Sprite2D" type="Sprite2D" parent="MovablePlateform"]
texture = ExtResource("3_l54kj")

[node name="CollisionShape2D" type="CollisionShape2D" parent="MovablePlateform"]
shape = SubResource("RectangleShape2D_82l4y")
debug_color = Color(1.7409995, 0, 0.33381775, 0.41960785)

[node name="PlayerTriggerVolumn" parent="MovablePlateform" instance=ExtResource("4_ylwpt")]
debug_print = true

[node name="CollisionShape2D" type="CollisionShape2D" parent="MovablePlateform/PlayerTriggerVolumn"]
shape = SubResource("RectangleShape2D_k2ua5")

[node name="Path2D" type="Path2D" parent="."]
curve = SubResource("Curve2D_yo6tx")
