5 przeciwnikow, jakos to dziala

This commit is contained in:
2024-12-11 23:47:20 +01:00
parent 1c0e5d0293
commit 38fd71b8e6
8 changed files with 158 additions and 42 deletions

View File

@@ -32,9 +32,12 @@ public:
void updateDirection();
bool isShooting() const;
const Beam& getBeam() const;
void setPlanszaHeight(float height);
void setMapBounds(float width, float height);
private:
float planszaHeight = 800.f;
sf::Clock shootClock;
sf::Texture WiazkaTexture;
float movementSpeed = 2.0f;
@@ -44,7 +47,8 @@ private:
bool shooting = false; // Czy obecnie strzela
sf::Clock shootingClock; // Zegar kontrolujący czas strzału
float beamDuration = 1.0f; // Czas trwania widoczności wiązki (w sekundach)
float mapWidth; // Szerokość mapy/planszy
float mapHeight;
void spawnBeam(); // Tworzy wiązkę
};