Implementacja naliczania punktów za zabicie wrogów

This commit is contained in:
2024-12-14 20:32:08 +01:00
parent 9432cd94fe
commit 94eddb457f
7 changed files with 18 additions and 7 deletions

View File

@@ -455,6 +455,7 @@ void Plansza::update() {
wiazkowiec.render(*window);
}
// TODO: naprawić to co średnio działa
// Usuwanie pocisków, które są poza ekranem srednio to dziala
for (auto enemyIt = enemies.begin(); enemyIt != enemies.end();) {
for (auto bulletIt = enemyIt->getBullets().begin(); bulletIt != enemyIt->getBullets().end();) {
@@ -815,4 +816,5 @@ void Plansza::update_score() {
window->draw(text);
}
ships Plansza::selectedShip = none;
ships Plansza::selectedShip = none;
unsigned int Plansza::score = 0;