Archived
Multiple fixes
Obracające się meteoryty, koniec gry przy natrafieniu na meteoryt. Poprawione sprajty statku, meteorytu i pocisku
This commit is contained in:
+1
-3
@@ -31,9 +31,7 @@ public:
|
||||
|
||||
void updateBullets();
|
||||
|
||||
void setMovingSpeed(float speed) {
|
||||
moving_speed = speed;
|
||||
}
|
||||
void setMovingSpeed(float speed);
|
||||
|
||||
protected:
|
||||
sf::Sprite actorSprite;
|
||||
|
||||
@@ -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
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user