To give the player a bit more interesting movement, we’re going to implement an option for them to quickly “dash” in the direction they’re moving – or, more specifically, in the direction they have held down with the movement keys. If they’re holding W and D, they’ll dash diagonally forward and right, for example.
When dashing, the player will stop moving by normal means, giving control to the dash movement instead. Once they finish dashing, we’ll revert control back to the normal movement, and we’ll set the movement ...