Serduszka działają

do zrobienia jeszcze animacja uderzenia się w meteoryt (miganie) i wybuch statku przy uderzeniu się w meteoryt po raz trzeci
This commit is contained in:
2024-12-06 12:24:39 +01:00
parent 3b637508e1
commit 2f9e0ba236
6 changed files with 213 additions and 138 deletions

View File

@@ -25,19 +25,21 @@ public:
void update_hearts();
void update();
private:
Size size;
sf::RenderWindow *window;
Background background;
Player ship;
AudioManager audioManager;
Size size;
sf::Texture meteorTexture1;
sf::Texture meteorTexture2;
sf::Texture heartTexture;
sf::Texture heartTextureGray;
sf::Clock meteorSpawnClock;
sf::Clock heartSpawnClock;
std::vector<Meteor> meteors;
std::vector<Heart> hearts;
sf::RenderWindow *window;
std::vector<sf::Sprite> heartStats;
bool gameOver = false;
};
#endif //PLANSZA_H