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
|
//Selects Font
|
||||||
//Draws the new level
|
//Draws the new level
|
||||||
level = 1;
|
level = 1;
|
||||||
|
initialDraw=true;
|
||||||
newLevel();
|
newLevel();
|
||||||
score = 0;
|
score = 0;
|
||||||
initialDraw=true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (lives>0)
|
if (lives>0)
|
||||||
|
@ -432,7 +432,14 @@ void newLevel()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!initialDraw)
|
||||||
|
{
|
||||||
|
arduboy.clear();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
arduboy.display();
|
arduboy.display();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//Used to delay images while reading button input
|
//Used to delay images while reading button input
|
||||||
|
|
Loading…
Reference in New Issue