ultimate implemented

This commit is contained in:
2025-01-16 21:27:14 +01:00
parent 622e814d1c
commit 92d5f66a91
7 changed files with 40 additions and 29 deletions

View File

@@ -66,7 +66,9 @@ public:
static ships selectedShip;
static unsigned int score;
static unsigned int ultimateCounter;
sf::Font font;
private:
Background background;
AudioManager audioManager;
@@ -86,7 +88,7 @@ private:
sf::Clock heartSpawnClock;
sf::Clock powerUpSpawnClock;
sf::Clock debuffSpawnClock;
// sf::Clock spawnClock;
sf::Clock ultimateClock;
sf::Clock scoreClock;
sf::Clock shooterSpawnClock;
sf::Clock enemySpawnClock;
@@ -134,7 +136,7 @@ private:
// Zmienne prymitywne
Boss* boss = nullptr; // Wskaźnik na bossa
sf::Clock bossSpawnClock; // Zegar do spawnowania bossa
unsigned int nextBossScoreThreshold = 1; // Próg punktowy dla spawnu bossa
unsigned int nextBossScoreThreshold = 1000; // Próg punktowy dla spawnu bossa
bool bossSpawned = false; // Flaga informująca, czy boss został już zespawnowany
bool gameOver = false;