Noah2610 / deathfloor

Work-in-progress Mega Man inspired game.
MIT License
2 stars 0 forks source link

Remove PhysicsData component, refactor player config #79

Closed Noah2610 closed 3 years ago

Noah2610 commented 4 years ago

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.

Noah2610 commented 4 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.

Noah2610 commented 4 years ago

Refactor Walker component to use Movable and MovementAcceleration with MoveAction::Walk.