Movement code for an RPG! WASD or arrow keys to move.
Feel Free to use this in games, with credit, of course. Updates: Oct 18: added walls and collisions for the walls Oct 19: removed walls for now Oct 21: Added walls... with bugs Nov 21: Fixed Wall collisions!