I'm creating a top down dungeon crawler - esque game as a java application, and one of the problems I'm facing is changing the position of the player depending on where the mouse is in relation to the player.
Basically, if the mouse is in the top right corner of the screen, I want my player to be facing north east respectively.
Using my advanced paint skills, I have created an image to help illustrate my problem. Any help is greatly appreciated.
Thanks in advance,