Adjustin hearts to be in right upper corner due to score counter in left upper corner
This commit is contained in:
@@ -29,9 +29,9 @@ ship(static_cast<int>(mainWindow->getSize().x) / 2, static_cast<int>(mainWindow-
|
||||
heartStats.emplace_back(sf::Sprite(heartTexture));
|
||||
heartStats.emplace_back(sf::Sprite(heartTexture));
|
||||
heartStats.emplace_back(sf::Sprite(heartTexture));
|
||||
heartStats[0].setPosition(10, 10);
|
||||
heartStats[1].setPosition(45, 10);
|
||||
heartStats[2].setPosition(80, 10);
|
||||
heartStats[0].setPosition(565, 10);
|
||||
heartStats[1].setPosition(530, 10);
|
||||
heartStats[2].setPosition(495, 10);
|
||||
|
||||
meteorSpawnClock.restart();
|
||||
}
|
||||
@@ -217,7 +217,7 @@ void Plansza::update() {
|
||||
}
|
||||
|
||||
|
||||
for (auto heart: heartStats) {
|
||||
for (const auto& heart: heartStats) {
|
||||
window->draw(heart);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user