Continuous arrow keypresses
I've implemented handling of having the arrow keys continuously pressed. It was working already for the vim keys (hjkl) but I think it's important to have it for arrows, as most of you use arrows, and being able to stick to a direction is nice (when smooth). Here's the first trial:
Oops that's too fast! And then the final version (using the delta time since the last handled event to decide whether to perform a new move):
I'm quite happy with the result, it's super smooth and doesn't depend on the framerate (so it should work fine even if the game is lagging (which should never happen, but who knows..)).
Get Dungeon Mercenary
Leave a comment
Log in with itch.io to leave a comment.