mirror of
https://github.com/dylanbenzi/pacmen-sfml.git
synced 2026-11-27 08:26:59 +00:00
modify entire game to use class based structure
This commit is contained in:
+19
@@ -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
|
||||
Reference in New Issue
Block a user