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: Ball/Ball.h
- Revision:
- 7:35465b3bf586
- Parent:
- 5:5c132202b642
- Child:
- 8:10eb578dd754
--- a/Ball/Ball.h Sun May 17 19:12:52 2020 +0000 +++ b/Ball/Ball.h Mon May 18 14:28:05 2020 +0000 @@ -16,7 +16,7 @@ public: Ball(); ~Ball(); - void init(); + void init(int x,int y); void draw(N5110 &lcd); void update(Direction d); void level_finish(); @@ -26,11 +26,9 @@ private: + int ball; int ball_x_pos; int ball_y_pos; - int ball; - int x_pos; - int y_pos; }; #endif \ No newline at end of file