Statek miga

przy uderzeniu w meteoryt
This commit is contained in:
2024-12-06 15:16:57 +01:00
parent 2f9e0ba236
commit 71f8ebe285
4 changed files with 30 additions and 2 deletions

View File

@@ -17,12 +17,17 @@ public:
void moveRight() override;
void moveUp() override;
void moveDown() override;
void onHit();
void update();
std::vector<Rocket>& getRockets();
private:
std::chrono::steady_clock::time_point lastShotTime = std::chrono::steady_clock::now();
std::vector<Rocket> rockets;
sf::Texture rocketTexture;
sf::Texture bulletTexture;
bool isBlinking = false;
sf::Color originalColor;
};