modify entire game to use class based structure

This commit is contained in:
2025-11-07 22:23:37 -05:00
parent f047348937
commit a2b7d62971
16 changed files with 622 additions and 467 deletions
+19
View File
@@ -0,0 +1,19 @@
#ifndef GAME_H
#define GAME_H
#include <SFML/System/Vector2.hpp>
#include <string>
class Game {
public:
Game() {};
Game(sf::Vector2u windowRes, std::string& windowName, int maxFPS) : windowRes(windowRes), windowName(windowName), maxFPS(maxFPS) {};
void run();
private:
sf::Vector2u windowRes = {1920, 1080};
std::string windowName = "Pacmen";
unsigned int maxFPS = 60;
};
#endif