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.
Dependencies: mbed
Diff: engine/engine.cpp
- Revision:
- 16:75122d14153c
- Parent:
- 15:0a55e0ac8421
- Child:
- 17:7acfc8a0c277
--- a/engine/engine.cpp Mon Apr 23 22:36:11 2018 +0000
+++ b/engine/engine.cpp Mon Apr 23 23:06:13 2018 +0000
@@ -120,7 +120,7 @@
{
boom_pos.y = 0;
boom_pos.x = rand()%84;
- pad.tone(750.0,0.1);
+ pad.tone(4450.0,1);
engine::print_scores(lcd);
}
@@ -141,7 +141,7 @@
{
money_pos.y = 0;
money_pos.x = rand()%84;
- pad.tone(750.0,0.1);
+ pad.tone(1750.0,0.5);
_rect.add_score();
//engine::print_scores(lcd);
}
@@ -159,11 +159,12 @@
lcd.clear();
sprintf(buffer1,"%2d",rect_score);
- lcd.printString(buffer1,WIDTH/2 - 20,1);
+ lcd.printString(" Score: ",3,3);
+ lcd.printString(buffer1,35,5);
- lcd.printString(" Game Over",0,1);
+ lcd.printString(" Game Over",0,1);
lcd.refresh();
- wait(2);
+ wait(20);
}