Fix a minor visual glitch in ArduBreakout

Submitted by @uXeBoy (Dan O'Shea).
The game screen was displayed very briefly after entering a high score,
before the title screen is displayed.
This commit is contained in:
Scott Allen 2020-07-20 17:32:04 -04:00
parent 32d23b7984
commit 2491e639aa
1 changed files with 9 additions and 2 deletions

View File

@ -111,9 +111,9 @@ void loop()
//Selects Font
//Draws the new level
level = 1;
initialDraw=true;
newLevel();
score = 0;
initialDraw=true;
}
if (lives>0)
@ -432,8 +432,15 @@ void newLevel()
}
}
if (!initialDraw)
{
arduboy.clear();
}
else
{
arduboy.display();
}
}
//Used to delay images while reading button input
boolean pollFireButton(int n)