mirror of
https://github.com/JoeyDeVries/LearnOpenGL.git
synced 2026-01-08 01:33:22 +08:00
Update breakout code to match revised changes 'Levels' chapter.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user