/ Published in: C++
not working
Expand |
Embed | Plain Text
void Man::move() { int a, b, c = MAN_SIZE / 20; //tmp b= c*sin( rot_angle ); a= c*cos( rot_angle ); switch ( w ) { case 1: x += b; y += a; break; case -1: x -= b; y -= a; break; default: break; } //Move the Man left or right x += Vel_x; //Move the Man up or down y += Vel_y; //Rotate the Man switch ( rot ) { case 1: rot_angle += rot_speed; break; case -1: rot_angle -= rot_speed; break; default: break; } }
You need to login to post a comment.
