Naprawiono laser, przerobiono na wskaźniki. Do refactoringu i poprawy sprite'a

This commit is contained in:
2024-12-19 15:14:14 +01:00
parent 15a8d82176
commit 36984b859f
5 changed files with 25 additions and 25 deletions

View File

@@ -2,11 +2,11 @@
#include <iostream>
Beam::Beam(float x, float y, float width, float height, const sf::Color& color)
Beam::Beam(float x, float y, float width, float height)
: visible(false) {
beamShape.setPosition(x, y);
beamShape.setSize({width, height});
beamShape.setFillColor(color);
// beamShape.setFillColor(color);
if (!beamTexture.loadFromFile("../assets/img/wiazka/wiazka.png")) {
std::cerr << "Błąd! Nie można załadować tekstury wiazka.png" << std::endl;