Added Window Icon and disbled resizing of the game window to improve user experience.

This commit is contained in:
mbalalaj10
2025-11-29 22:32:55 -05:00
parent 3290c5b954
commit 499a25b536
2 changed files with 6 additions and 1 deletions
+6 -1
View File
@@ -193,9 +193,14 @@ void Game::run() {
bool vulnerableModeActive = false;
const float vulnerableDurationSeconds = 8.0f; // Duration of vulnerable mode
auto window = sf::RenderWindow(sf::VideoMode(windowRes), windowName);
auto window = sf::RenderWindow(sf::VideoMode(windowRes), windowName, sf::Style::Titlebar | sf::Style::Close);
sf::Listener::setGlobalVolume(gameVolume);
sf::Image icon;
if(icon.loadFromFile("assets/icons/pacman.png")) {
window.setIcon(icon);
}
sf::Sound sound(*resources.getSound("start"));
sound.play();