画面よりも外に出たら、最小の幅や高さよりも大きい座標へ移動
if (wide_x > newWidth ) {
defaultSpeedY = 1;
defaultSpeedX = 1;
wide_x = -10;
}
if (height_y > newHeight ) {
defaultSpeedY = 0;
defaultSpeedX = 0;
height_y = -10;
}
if (wide_x < -11 ) {
defaultSpeedY = 0;
defaultSpeedX = 0;
wide_x = newWidth;
}
if (height_y < -11 ) {
defaultSpeedY = 1;
defaultSpeedX = 1;
height_y = newHeight;
}