W and S to move towards/away from the mouse pointer. A and D to move the character left and right.
I'm making a top-down scrolling shooter, and need somewhere to start. This project is to test movement towards any direction, but only using X and Y variables (to allow for scrolling). All by meeeee. Uses the math from my last project.