diff --git a/LICENSE.md b/LICENSE.md index 84b7a3c..8523a8f 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,35 +1,6 @@ -# CMake SFML Project Licenses - -*This software is available under 2 licenses -- choose whichever you prefer.* - -## Public Domain - -This is free and unencumbered software released into the public domain. - -Anyone is free to copy, modify, publish, use, compile, sell, or -distribute this software, either in source code form or as a compiled -binary, for any purpose, commercial or non-commercial, and by any -means. - -In jurisdictions that recognize copyright laws, the author or authors -of this software dedicate any and all copyright interest in the -software to the public domain. We make this dedication for the benefit -of the public at large and to the detriment of our heirs and -successors. We intend this dedication to be an overt act of -relinquishment in perpetuity of all present and future rights to this -software under copyright law. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR -OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, -ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. - ## MIT License -Copyright (c) 2022 Lukas Dürrenberger +Copyright (c) 2025 Aiden Scalf, Dylan Benzi, Dylan Frenchman, and Mihails Balalajs Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index f972d3d..1ec612c 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ +![Pacman icon](assets/icons/pacman.png) # Pacmen SFML A classic Pac-Man game implementation built with C++ and SFML 3. diff --git a/assets/icons/pacman.png b/assets/icons/pacman.png new file mode 100644 index 0000000..e2df5d1 Binary files /dev/null and b/assets/icons/pacman.png differ diff --git a/src/Game.cpp b/src/Game.cpp index d8b8f0b..23e907d 100644 --- a/src/Game.cpp +++ b/src/Game.cpp @@ -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();