mirror of
https://github.com/kuhyx/engineer-thesis-WUT.git
synced 2026-11-11 14:27:43 +01:00
31 lines
787 B
C++
31 lines
787 B
C++
// Copyright [2023] Krzysztof Rudnicki
|
|
#ifndef HOME_KUCHY_ENGINEER_THESIS_WUT_BREAKOUT_GAME_HPP
|
|
#define HOME_KUCHY_ENGINEER_THESIS_WUT_BREAKOUT_GAME_HPP
|
|
#include <array>
|
|
|
|
#include <GLFW/glfw3.h>
|
|
|
|
#include "../dependencies/include/glad/glad.h"
|
|
|
|
// Represents the current state of the game
|
|
enum GameState { GAME_ACTIVE, GAME_MENU, GAME_WIN };
|
|
|
|
class Game {
|
|
public:
|
|
// game state
|
|
GameState State;
|
|
std::array<bool, 1024> Keys;
|
|
unsigned int Width, Height;
|
|
// constructor/destructor
|
|
Game(unsigned int width, unsigned int height);
|
|
~Game() = default;
|
|
// initialize game state (load all shaders/textures/levels)
|
|
void Init();
|
|
// game loop
|
|
void ProcessInput(double dt);
|
|
void Update(double dt);
|
|
void Render();
|
|
};
|
|
|
|
#endif // HOME_KUCHY_ENGINEER_THESIS_WUT_BREAKOUT_GAME_HPP
|