Archived
Meteoryty lecą w trybie testowym.
This commit is contained in:
+1
-1
@@ -11,7 +11,7 @@ class Bullet {
|
||||
};
|
||||
|
||||
public:
|
||||
Bullet(float x, float y, sf::Texture &bulletTexture);
|
||||
Bullet(float x, float y, sf::Texture &texture);
|
||||
void update();
|
||||
sf::Sprite& getSprite();
|
||||
void setSpeed(float speed);
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
#ifndef LOTOSTATEK_METEOR_H
|
||||
#define LOTOSTATEK_METEOR_H
|
||||
|
||||
#include "SFML/Graphics/Texture.hpp"
|
||||
#include "SFML/Graphics/Sprite.hpp"
|
||||
|
||||
class Meteor {
|
||||
struct Position {
|
||||
int x;
|
||||
int y;
|
||||
};
|
||||
public:
|
||||
Meteor(int x, int y, sf::Texture &texture);
|
||||
sf::Sprite & getSprite();
|
||||
bool getStatus();
|
||||
void update();
|
||||
private:
|
||||
sf::Texture meteorTexture;
|
||||
sf::Sprite meteorSprite;
|
||||
Position position;
|
||||
float meteorSpeed;
|
||||
bool outOfBounds;
|
||||
};
|
||||
|
||||
|
||||
#endif //LOTOSTATEK_METEOR_H
|
||||
Reference in New Issue
Block a user