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

@@ -34,7 +34,7 @@ TextRenderer *Text;
Game::Game(unsigned int width, unsigned int height)
: State(GAME_MENU), Keys(), Width(width), Height(height), Level(0), Lives(3)
: State(GAME_MENU), Keys(), KeysProcessed(), Width(width), Height(height), Level(0), Lives(3)
{
}
@@ -548,4 +548,4 @@ Direction VectorDirection(glm::vec2 target)
}
}
return (Direction)best_match;
}
}