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: BrickBreaker_Engine/BrickBreakerEngine.h
- Revision:
- 26:0dc10374546f
- Parent:
- 25:b52aa23df120
- Child:
- 32:eff573ad8e42
--- a/BrickBreaker_Engine/BrickBreakerEngine.h	Sun Apr 21 13:20:12 2019 +0000
+++ b/BrickBreaker_Engine/BrickBreakerEngine.h	Tue Apr 23 23:55:05 2019 +0000
@@ -21,17 +21,19 @@
     void brickbreaker_draw(N5110 &lcd, Ball &ball);     //done
     void set_score(int score);
     void check_square_collision(AnalogIn &randnoise, Ball &ball);
-    void check_high_score(SDFileSystem &sd);
+    void write_high_scores();
 
 private:
 //private functions
     void generate_rand_square(AnalogIn &randnoise); 
     void print_score(N5110 &lcd);
+    void read_high_scores();
+    void check_high_score();
     
 //private variables
     int _ball_radius;
     Vector2D _square_coord;
     int _score;
-
+    int _hsarray[6];
 };
 #endif
\ No newline at end of file