Dodano podstawowy licznik
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user