[code]
void _car::MoveCar(void)
{
if(Key[KEY_INPUT_UP]>=1)
{
if(Key[KEY_INPUT_LEFT]>=1)
{
handle=(handle+3)%360;
angle=(angle+357)%360;
}
if(Key[KEY_INPUT_RIGHT]>=1)
{
handle=(handle+357)%360;
angle=(angle+3)%360;
}
y=y-spead*ssin[handle];
x=x+spead*ccos[handle];
}
if(Key[KEY_INPUT_DOWN]>=1)
{
if(Key[KEY_INPUT_LEFT]>=1)
{
handle=(handle+357)%360;
angle=(angle+3)%360;
}
if(Key[KEY_INPUT_RIGHT]>=1)
{
handle=(handle+3)%360;
angle=(angle+357)%360;
}
y=y-backspead*ssin[handle];
x=x+backspead*ccos[handle];
}
Aangle=PI/180*angle;
}
教えてください。お願いします。