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:
- 63:2de6fb2de428
- Parent:
- 62:64559062e0ec
- Child:
- 64:c3426b417ad9
--- a/BreakoutEngine/BreakoutEngine.cpp Sat May 04 20:17:05 2019 +0000
+++ b/BreakoutEngine/BreakoutEngine.cpp Sat May 04 20:40:32 2019 +0000
@@ -433,7 +433,7 @@
void BreakoutEngine::print_scores(N5110 &lcd) //maybe add to oneless
{
// get scores from paddles
- int p1_score = get_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
+ int p1_score = 1800*(_multiplier-1) + (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
// also, add a multiplier of 2 for every contiue on victory
// print to LCD i
char buffer1[14];