mirror of https://github.com/MLXXXp/Arduboy2.git
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:
parent
32d23b7984
commit
2491e639aa
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue