Jakieś działające gówno
Ale nie strzela chujek
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#define PLANSZA_H
|
||||
|
||||
#include "Meteor.h"
|
||||
#include "Enemy.h"
|
||||
#include "RandomNumberGenerator.h"
|
||||
#include "SFML/System/Clock.hpp"
|
||||
#include "SFML/Graphics/RenderWindow.hpp"
|
||||
@@ -18,9 +19,12 @@ public:
|
||||
Plansza(unsigned int windowHeight,unsigned int windowWidth, sf::RenderWindow *mainWindow);
|
||||
Size getSize();
|
||||
std::vector<Meteor> &getMeteors();
|
||||
|
||||
|
||||
void spawn_meteor();
|
||||
void update_meteors();
|
||||
void update();
|
||||
void spawn_enemy();
|
||||
private:
|
||||
Size size;
|
||||
Background background;
|
||||
@@ -29,6 +33,9 @@ private:
|
||||
sf::Texture meteorTexture1;
|
||||
sf::Texture meteorTexture2;
|
||||
sf::Clock spawnClock;
|
||||
sf::Clock shooterSpawnClock;
|
||||
std::vector<Enemy> enemies;
|
||||
sf::Clock enemySpawnClock;
|
||||
std::vector<Meteor> meteors;
|
||||
sf::RenderWindow *window;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user