nsmryan / RustRoguelike

This Rust Roguelike is a Roguelike written in Rust.
17 stars 3 forks source link

Move Mode On Attack/Push #386

Closed nsmryan closed 2 years ago

nsmryan commented 2 years ago

An entities move mode is currently changed on any movement, even if they are pushed or attack such that they move into a new space.

I think it makes sense for attacks in a way, but it would be a little annoying as the player to be pushed while running and to try to run again, only to walk.

To fixed this, considering adding a new MoveType or using an existing move type, and then when resolving the move do not set the move_mode when that MoveType is used.