Movement refactor
This commit is contained in:
@@ -48,8 +48,8 @@ color_ramp = SubResource("GradientTexture1D_f1fvy")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_0nwt7"]
|
||||
script = ExtResource("7_80vn0")
|
||||
duration = 1.0
|
||||
transition = 0
|
||||
duration = 0.25
|
||||
transition = 3
|
||||
ease = 2
|
||||
|
||||
[node name="World" type="Node2D"]
|
||||
@@ -86,6 +86,7 @@ AudioSettingsControl = NodePath("../Audio settings")
|
||||
|
||||
[node name="Camera2D" parent="." instance=ExtResource("5_sskgn")]
|
||||
physics_interpolation_mode = 1
|
||||
position = Vector2(32, -16)
|
||||
process_callback = 0
|
||||
limit_left = -512
|
||||
limit_top = -720
|
||||
@@ -94,10 +95,16 @@ limit_bottom = 320
|
||||
|
||||
[node name="PhantomCamera2D" type="Node2D" parent="." node_paths=PackedStringArray("follow_target")]
|
||||
top_level = true
|
||||
position = Vector2(32, -16)
|
||||
script = ExtResource("6_18aqg")
|
||||
follow_mode = 2
|
||||
follow_mode = 5
|
||||
follow_target = NodePath("../Brick Player")
|
||||
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"
|
||||
|
@@ -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"
|
||||
|
@@ -232,7 +232,7 @@ color_ramp = SubResource("GradientTexture1D_f1fvy")
|
||||
[sub_resource type="Resource" id="Resource_lsjk3"]
|
||||
script = ExtResource("14_k7w2w")
|
||||
duration = 0.25
|
||||
transition = 0
|
||||
transition = 3
|
||||
ease = 2
|
||||
|
||||
[node name="World" type="Node2D"]
|
||||
@@ -306,13 +306,15 @@ process_callback = 0
|
||||
top_level = true
|
||||
position = Vector2(935, -134)
|
||||
script = ExtResource("13_01fjw")
|
||||
follow_mode = 2
|
||||
follow_mode = 5
|
||||
follow_target = NodePath("../Brick Player")
|
||||
snap_to_pixel = true
|
||||
tween_resource = SubResource("Resource_lsjk3")
|
||||
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/_edit_lock_ = true
|
||||
|
@@ -31,7 +31,7 @@ diffuse_texture = SubResource("GradientTexture1D_e6jir")
|
||||
|
||||
[sub_resource type="Resource" id="Resource_0nwt7"]
|
||||
script = ExtResource("7_57ky0")
|
||||
duration = 1.0
|
||||
duration = 0.25
|
||||
transition = 0
|
||||
ease = 2
|
||||
|
||||
@@ -133,6 +133,7 @@ position = Vector2(1914, 8)
|
||||
|
||||
[node name="Camera2D" parent="." instance=ExtResource("5_yqj3b")]
|
||||
physics_interpolation_mode = 1
|
||||
position = Vector2(32, -16)
|
||||
process_callback = 0
|
||||
limit_left = -10000000
|
||||
limit_top = -10000000
|
||||
@@ -142,11 +143,16 @@ limit_bottom = 10000000
|
||||
[node name="PhantomCamera" type="Node2D" parent="." node_paths=PackedStringArray("follow_target")]
|
||||
unique_name_in_owner = true
|
||||
top_level = true
|
||||
position = Vector2(32, -16)
|
||||
script = ExtResource("6_i5rlu")
|
||||
follow_mode = 2
|
||||
follow_mode = 5
|
||||
follow_target = NodePath("../Brick Player")
|
||||
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
|
||||
metadata/_custom_type_script = "uid://d23haq52m7ulv"
|
||||
|
||||
@@ -171,10 +177,24 @@ position = Vector2(7146.51, 21.1388)
|
||||
|
||||
[node name="Brick Player" parent="." instance=ExtResource("1_k3uyd")]
|
||||
|
||||
[node name="GroundMovementAbility" parent="Brick Player/Movements" index="0"]
|
||||
process_mode = 4
|
||||
|
||||
[node name="GravityAbility" parent="Brick Player/Movements" index="1"]
|
||||
process_mode = 4
|
||||
|
||||
[node name="VariableJumpAbility" parent="Brick Player/Movements" index="2"]
|
||||
process_mode = 4
|
||||
|
||||
[node name="OneWayPlatformAbility" parent="Brick Player/Movements" index="3"]
|
||||
process_mode = 4
|
||||
|
||||
[node name="HitParticles" parent="Brick Player" index="26"]
|
||||
process_material = SubResource("ParticleProcessMaterial_lgb3u")
|
||||
|
||||
[node name="Enemies" type="Node2D" parent="."]
|
||||
process_mode = 4
|
||||
visible = false
|
||||
|
||||
[node name="Flying Enemy" parent="Enemies" instance=ExtResource("18_162yw")]
|
||||
position = Vector2(1122, -33)
|
||||
@@ -266,11 +286,10 @@ position = Vector2(16.5, -10)
|
||||
[connection signal="Death" from="Brick Player/HealthComponent" to="UI Layer/DeathScreen" method="OnPlayerDeath"]
|
||||
[connection signal="Death" from="Brick Player/HealthComponent" to="UI Layer/GameOverScreen" method="OnPlayerDeath"]
|
||||
[connection signal="SpaceshipEntered" from="Spaceship Enter" to="Chaser/ChaseLevelComponent" method="OnShipEntered"]
|
||||
[connection signal="SpaceshipEntered" from="Spaceship Enter" to="Brick Player" method="OnSpaceshipEntered"]
|
||||
[connection signal="SpaceshipEntered" from="Spaceship Enter" to="Brick Player/Movements/PlatformMovement" method="OnShipEntered"]
|
||||
[connection signal="SpaceshipEntered" from="Spaceship Enter" to="Brick Player" method="SetSpaceshipMovement"]
|
||||
[connection signal="SpaceshipEntered" from="Spaceship Enter" to="Brick Player/ShipShooter" method="OnShipEntered"]
|
||||
[connection signal="SpaceshipExit" from="Spaceship exit" to="Chaser/ChaseLevelComponent" method="OnShipExited"]
|
||||
[connection signal="SpaceshipExit" from="Spaceship exit" to="Brick Player" method="OnSpaceshipExited"]
|
||||
[connection signal="SpaceshipExit" from="Spaceship exit" to="Brick Player" method="SetPlatformMovement"]
|
||||
[connection signal="SpaceshipExit" from="Spaceship exit" to="Brick Player/ShipShooter" method="OnShipExited"]
|
||||
|
||||
[editable path="Chaser"]
|
||||
|
Reference in New Issue
Block a user