wiazkowiec strzela, gora dol

This commit is contained in:
2024-12-11 23:00:07 +01:00
parent b257837d18
commit c898aa0d81
8 changed files with 352 additions and 6 deletions

View File

@@ -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;
}
}