9a0fa96d4f
Currently movement works in the direction of the latest key pressed. Moving diagonally is not possible, and if you are pressing two keys and release one, movement stops instead of switching over. This keeps track of the key press state and updates the movement delta accordingly, leading to much more natural/pleasant WASD navigation. Note than onKeyDown is called multiple times when you press and hold, so we must keep track of this state ourselves. |
||
---|---|---|
.. | ||
client | ||
server | ||
.gitignore |