diff --git a/sources/Plansza.cpp b/sources/Plansza.cpp index f91a751..bdb3452 100644 --- a/sources/Plansza.cpp +++ b/sources/Plansza.cpp @@ -37,20 +37,12 @@ Plansza::Plansza(unsigned int windowHeight, unsigned int windowWidth, sf::Render BombaTexture.loadFromFile("../assets/img/bullets/bomba.png"); WiazkowiecTexture.loadFromFile("../assets/img/enemy/wiazkowiec.png"); enemyBulletTexture.loadFromFile("../assets/img/bullets/enemy_bullet.png"); + BossTexture.loadFromFile("../assets/img/boss/boss.png"); } catch (std::exception &e) { std::cerr << "Failed to load textures: " << e.what() << std::endl; exit(-500); } - try { - // ... - BossTexture.loadFromFile("../assets/img/boss/boss.png"); - } catch (std::exception &e) { - std::cerr << "Failed to load boss texture: " << e.what() << std::endl; - exit(-500); - } - - score = 0; // Wczytywanie czcionki dla licznika punktów