Example #1
0
void Player::update() {
    Move();
    Direction_Flag_Change();
    DirectionChange();
    Angle_Change();
    SpeedDown();

}
Example #2
0
void Motor::speed_control(int step)
{
	if( step >= 0)
	{
		for(int i=0; i<step; i++)
			SpeedUp();
	}
	else
	{
		for(int i=0; i<abs(step); i++)
			SpeedDown();
	}
}