Movement refactor
This commit is contained in:
@@ -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