Closed Noah2610 closed 3 years ago
ControlPlayerJumpSystem
shouldn't change player gravity, instead another system
(or maybe the HandleMovablesSystem
) should update the entity's gravity,
depending on Velocity
, MoveAction
(Jump
, KillJump
), standing on ground.
That way, every Jumper
entity can actually have different gravities, not only the player.
Also, then we can use the MoveAction(Jump)
action and it would change gravity properly.
Refactor Walker
component to use Movable
and MovementAcceleration
with MoveAction::Walk
.
Remove
PhysicsData
component, instead split up into separate smaller components.Remove most player config stuff, instead just use the player's entity config to define their components.