Noah2610 / deathfloor

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

Jump animations logic #87

Closed Noah2610 closed 3 years ago

Noah2610 commented 4 years ago

Add new animation keys for jumping and in-air animations (Jump, Jumping, InAir (?)).

Noah2610 commented 4 years ago

See AnimationKey variant doc comments for details on how to configure animations and when which animations are played. https://github.com/Noah2610/deathfloor/blob/855d0526ff7131f5707073f2a7b17867d0758725/src/animation_key.rs#L4-L39

Noah2610 commented 4 years ago

Instead of Jumping and InAir animations, maybe we should have something like Ascending and Descending animations, for when the entity is moving upwards/downwards respectively.

Closing for now, because this it's working.

Noah2610 commented 4 years ago

Add Rising and Falling animations. Played when y is positive/negative respectively.