Meteoryty lecą w trybie testowym.

This commit is contained in:
2024-11-19 14:42:25 +01:00
parent a69dc434a9
commit cf10a042c0
7 changed files with 112 additions and 21 deletions
+1 -1
View File
@@ -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);
+26
View File
@@ -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