Update breakout code to match revised changes 'Levels' chapter.

This commit is contained in:
Joey de Vries
2020-04-23 12:00:15 +02:00
parent 37892e5370
commit 351c968373
4 changed files with 147 additions and 2 deletions

View File

@@ -179,7 +179,7 @@ void Game::ProcessInput(float dt)
// move playerboard
if (this->Keys[GLFW_KEY_A])
{
if (Player->Position.x >= 0)
if (Player->Position.x >= 0.0f)
{
Player->Position.x -= velocity;
if (Ball->Stuck)