wiazkowiec strzela, gora dol
This commit is contained in:
@@ -25,13 +25,13 @@ void Bomber::setRandomDirection() {
|
||||
if (position.y > 0) direction = DirectionB::Up;
|
||||
break;
|
||||
case 1:
|
||||
if (position.y < 800) direction = DirectionB::Down;
|
||||
if (position.y < 600) direction = DirectionB::Down;
|
||||
break;
|
||||
case 2:
|
||||
if (position.x > 0) direction = DirectionB::Left;
|
||||
break;
|
||||
case 3:
|
||||
if (position.x < 600) direction = DirectionB::Right;
|
||||
if (position.x < 800) direction = DirectionB::Right;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user