Do poprawy centrowanie lasera i strzelanie w lewo i w prawo
This commit is contained in:
@@ -21,8 +21,14 @@ Player* Player::getInstance(int x, int y, const sf::Texture& texture) {
|
||||
}
|
||||
|
||||
void Player::loadTexture() {
|
||||
bulletTexture.loadFromFile("../assets/img/bullets/bullet_pink.png");
|
||||
rocketTexture.loadFromFile("../assets/img/rockets/Rocket_111.png");
|
||||
try {
|
||||
bulletTexture.loadFromFile("../assets/img/bullets/bullet_pink.png");
|
||||
rocketTexture.loadFromFile("../assets/img/rockets/Rocket_111.png");
|
||||
} catch (std::exception &e) {
|
||||
std::cerr << "Failed to load textures: " << e.what() << std::endl;
|
||||
exit(-500);
|
||||
}
|
||||
|
||||
damageDealClock.restart();
|
||||
originalColor = actorSprite.getColor();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user