Update Breakout code for 'Setting up' chapter.

This commit is contained in:
Joey de Vries
2020-04-22 16:35:13 +02:00
parent 599355fba8
commit e046977ffb
5 changed files with 16 additions and 8 deletions

View File

@@ -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)
{
}

View File

@@ -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);