refac: clean base

This commit is contained in:
Floriansylvain
2025-12-28 02:50:59 +01:00
parent 199b77df58
commit 683096351f
10 changed files with 228 additions and 144 deletions
+35
View File
@@ -0,0 +1,35 @@
#ifndef GAME_HPP
#define GAME_HPP
#include <SFML/Graphics.hpp>
#include "DebugUI.hpp"
#include "GridLines.hpp"
#include "Player.hpp"
constexpr bool VSYNC = true;
constexpr int WIDTH = 1920;
constexpr int HEIGHT = 1080;
constexpr int DEBUG_REFRESH_RATE_IN_MS = 250;
constexpr float ASPECT = 16.f / 9.f;
class Game {
public:
Game();
void run();
private:
sf::RenderWindow window;
sf::View worldView;
Player player;
DebugUI debug;
GridLines gridLines;
void onResize();
void processEvents();
void update(double dt);
void render();
};
#endif // GAME_HPP