mirror of
https://github.com/dylanbenzi/pacmen-sfml.git
synced 2026-11-27 00:17:01 +00:00
Merge pull request #2 from mbalalaj10/master
Pull request for the final improvements.
This commit is contained in:
+1
-30
@@ -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
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||

|
||||
# Pacmen SFML
|
||||
|
||||
A classic Pac-Man game implementation built with C++ and SFML 3.
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 2.3 KiB |
+6
-1
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user