5 przeciwnikow, jakos to dziala
This commit is contained in:
@@ -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ę
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user