Kolizja wiazki dodana

This commit is contained in:
2025-01-14 13:52:58 +01:00
parent baced5f971
commit 7d2b8bd9a2

View File

@@ -37,20 +37,12 @@ Plansza::Plansza(unsigned int windowHeight, unsigned int windowWidth, sf::Render
BombaTexture.loadFromFile("../assets/img/bullets/bomba.png"); BombaTexture.loadFromFile("../assets/img/bullets/bomba.png");
WiazkowiecTexture.loadFromFile("../assets/img/enemy/wiazkowiec.png"); WiazkowiecTexture.loadFromFile("../assets/img/enemy/wiazkowiec.png");
enemyBulletTexture.loadFromFile("../assets/img/bullets/enemy_bullet.png"); enemyBulletTexture.loadFromFile("../assets/img/bullets/enemy_bullet.png");
BossTexture.loadFromFile("../assets/img/boss/boss.png");
} catch (std::exception &e) { } catch (std::exception &e) {
std::cerr << "Failed to load textures: " << e.what() << std::endl; std::cerr << "Failed to load textures: " << e.what() << std::endl;
exit(-500); 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; score = 0;
// Wczytywanie czcionki dla licznika punktów // Wczytywanie czcionki dla licznika punktów