Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: BreakoutEngine/BreakoutEngine.cpp
- Revision:
- 106:a2957bab0c16
- Parent:
- 105:4e7585d8e5e2
- Child:
- 108:91da12db6f26
diff -r 4e7585d8e5e2 -r a2957bab0c16 BreakoutEngine/BreakoutEngine.cpp
--- a/BreakoutEngine/BreakoutEngine.cpp Tue May 07 18:51:16 2019 +0000
+++ b/BreakoutEngine/BreakoutEngine.cpp Wed May 08 00:42:19 2019 +0000
@@ -394,7 +394,6 @@
// paddle has scored
if (ball_pos.y > HEIGHT) {
_paddle.lose_life();
- //lose_screen(); // go to loss screen then initialise again
_ball.init(_ball_size,_speed+_multiplier/2,_paddle.get_pos().x + (PADDLE_WIDTH/2));
pad.tone(1500.0,0.5);
@@ -415,7 +414,7 @@
_paddle.set_sens(sens);
}
-void BreakoutEngine::print_scores(N5110 &lcd) //maybe add to oneless
+void BreakoutEngine::print_scores(N5110 &lcd)
{
// get scores from paddles
int score = _prev_score + (18 - get_num_left())*100 * _multiplier; //maybe add a previous score so the score carries over through victory screens. add hi score fix so restart restarts from 321