Ok, I'm using OpenGL with ortho turned on so that the top left of the screen is 0, 0. Rotating CW will give me a positive rotation while rotating CCW will give me a negative rotation.
0270 45 180
y is up and x is right. Heres my source to date. It draws the rotation properly but I won't move the right direction.
void Update(){ if(keys[VK_UP] || keys['W']) { guy.y += cos(DEG_TO_RAD(-guy.rot + 90)); guy.x += sin(DEG_TO_RAD(-guy.rot + 90)); } else if(keys[VK_DOWN] || keys['S']) { guy.y -= cos(DEG_TO_RAD(-guy.rot + 90)); guy.x -= sin(DEG_TO_RAD(-guy.rot + 90)); } if(keys[VK_LEFT] || keys['A']) { guy.rot--; if(guy.rot < 0) guy.rot += 360.0f; } else if(keys[VK_RIGHT] || keys['D']) { guy.rot++; if(guy.rot > 359) guy.rot -= 360.0f; }}