Movement refactor
This commit is contained in:
@@ -50,8 +50,8 @@ color_ramp = SubResource("GradientTexture1D_f1fvy")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_0nwt7"]
|
||||
script = ExtResource("7_y1tp2")
|
||||
duration = 1.0
|
||||
transition = 0
|
||||
duration = 0.25
|
||||
transition = 3
|
||||
ease = 2
|
||||
|
||||
[node name="World" type="Node2D"]
|
||||
@@ -77,6 +77,7 @@ ComponentsToDisable = [NodePath("../../Brick Player")]
|
||||
|
||||
[node name="Camera2D" parent="." instance=ExtResource("5_8nvkd")]
|
||||
physics_interpolation_mode = 1
|
||||
position = Vector2(32, -16)
|
||||
process_callback = 0
|
||||
limit_left = -1952
|
||||
limit_top = -1744
|
||||
@@ -85,11 +86,17 @@ limit_bottom = 560
|
||||
|
||||
[node name="PhantomCamera2D" type="Node2D" parent="." node_paths=PackedStringArray("follow_target")]
|
||||
top_level = true
|
||||
position = Vector2(32, -16)
|
||||
script = ExtResource("6_ono4h")
|
||||
follow_mode = 2
|
||||
follow_mode = 5
|
||||
follow_target = NodePath("../Brick Player")
|
||||
snap_to_pixel = true
|
||||
tween_resource = SubResource("Resource_0nwt7")
|
||||
follow_offset = Vector2(32, -16)
|
||||
follow_damping = true
|
||||
follow_damping_value = Vector2(0.15, 0.1)
|
||||
dead_zone_width = 0.18
|
||||
dead_zone_height = 0.15
|
||||
draw_limits = true
|
||||
limit_target = NodePath("../Terrain Layer")
|
||||
metadata/_custom_type_script = "uid://d23haq52m7ulv"
|
||||
|
Reference in New Issue
Block a user