Dodano podstawowy licznik

This commit is contained in:
2024-12-10 20:30:31 +01:00
parent e2e44ff1ba
commit 74c739a09e
2 changed files with 25 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ public:
void spawn_meteor();
void update_meteors();
void update();
void update_score();
private:
Size size;
Background background;
@@ -29,8 +30,11 @@ private:
sf::Texture meteorTexture1;
sf::Texture meteorTexture2;
sf::Clock spawnClock;
sf::Clock scoreClock;
std::vector<Meteor> meteors;
sf::RenderWindow *window;
sf::Font font;
unsigned int score = 0;
};
#endif //PLANSZA_H