Multiple fixes

Obracające się meteoryty, koniec gry przy natrafieniu na meteoryt.
Poprawione sprajty statku, meteorytu i pocisku
This commit is contained in:
2024-11-21 15:50:25 +01:00
parent b16fd9fad5
commit 2bdfbb193c
9 changed files with 42 additions and 16 deletions
+1 -3
View File
@@ -31,9 +31,7 @@ public:
void updateBullets();
void setMovingSpeed(float speed) {
moving_speed = speed;
}
void setMovingSpeed(float speed);
protected:
sf::Sprite actorSprite;
+1
View File
@@ -20,6 +20,7 @@ private:
sf::Texture meteorTexture;
sf::Sprite meteorSprite;
Position meteorPosition;
float meteorRotationSpeed;
float meteorSpeed;
bool outOfBounds;
static unsigned int counter;
+1 -1
View File
@@ -12,7 +12,7 @@ class Plansza {
int width;
};
public:
Plansza(int windowHeight, int windowWidth);
Plansza(unsigned int windowHeight, unsigned int windowWidth);
void spawn_meteor();
Size getSize();
std::vector<Meteor> &getMeteors();