Meteoryty są spawnowane automatycznie co 1 sekunde, max 5 meteorytów na plansze

This commit is contained in:
2024-11-20 14:57:40 +01:00
parent 1cd9f9b950
commit f1a3449d47
6 changed files with 32 additions and 12 deletions

View File

@@ -4,6 +4,7 @@
#include "Meteor.h"
#include "RandomNumberGenerator.h"
#include "SFML/System/Clock.hpp"
class Plansza {
struct Size {
@@ -21,6 +22,8 @@ private:
Size size;
sf::Texture meteorTexture;
RandomNumberGenerator random;
unsigned int meteorsCounter;
sf::Clock spawnClock;
};
#endif //PLANSZA_H