Meteoryty są spawnowane automatycznie co 1 sekunde, max 5 meteorytów na plansze
This commit is contained in:
@@ -10,7 +10,7 @@ private:
|
||||
std::uniform_int_distribution<> dis;
|
||||
|
||||
public:
|
||||
RandomNumberGenerator() : gen(rd()), dis(0, 599) {}
|
||||
RandomNumberGenerator() : gen(rd()), dis(0, 499) {}
|
||||
|
||||
int getRandomNumber() {
|
||||
return dis(gen);
|
||||
|
||||
Reference in New Issue
Block a user