mirror of
https://github.com/JoeyDeVries/LearnOpenGL.git
synced 2026-01-11 02:53:23 +08:00
Update Breakout code for 'Setting up' chapter.
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
#include "game.h"
|
||||
|
||||
Game::Game(unsigned int width, unsigned int height)
|
||||
: State(GAME_MENU), Keys(), Width(width), Height(height)
|
||||
: State(GAME_MENU), Keys(), KeysProcessed(), Width(width), Height(height)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
@@ -28,6 +28,7 @@ public:
|
||||
// game state
|
||||
GameState State;
|
||||
bool Keys[1024];
|
||||
bool KeysProcessed[1024];
|
||||
unsigned int Width, Height;
|
||||
// constructor/destructor
|
||||
Game(unsigned int width, unsigned int height);
|
||||
|
||||
Reference in New Issue
Block a user