Dziuala 3 strzlowiec

This commit is contained in:
2024-12-11 00:05:53 +01:00
parent 81b04bae0f
commit 2bffc2de0c
11 changed files with 25 additions and 52 deletions

View File

@@ -8,8 +8,7 @@
class Player : public Actor {
public:
Player(int x, int y, const sf::Texture& texture, const sf::Texture& bulletTexture, const sf::Texture& rocketTexture);
void setTextures(const sf::Texture& shipTexture, const sf::Texture& bulletTexture, const sf::Texture& rocketTexture);
Player(int x, int y, std::string path);
void shoot() override;
void alternate_shoot();
void setFirerate(unsigned int firerate);
@@ -25,6 +24,7 @@ private:
std::chrono::steady_clock::time_point lastShotTime = std::chrono::steady_clock::now();
std::vector<Rocket> rockets;
sf::Texture rocketTexture;
int health = 3; // Liczba punktów życia gracza
sf::Texture bulletTexture;
};