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: My_game_clases/Functions.h
- Revision:
- 13:1dbef50789ed
- Parent:
- 12:f7dfd44569b6
- Child:
- 14:739115711bf8
--- a/My_game_clases/Functions.h Thu Apr 23 09:10:11 2020 +0000 +++ b/My_game_clases/Functions.h Wed Apr 29 12:48:40 2020 +0000 @@ -43,9 +43,13 @@ bool cannon_smash(N5110 &lcd,Objects &objects);// checks if the cannon has crashed with anything int random(Gamepad &pad);//generates a random number void ball_creater(N5110 &lcd, Objects &objects, Gamepad &pad);//controls ball making and their movement equations + int get_score();//gets the players score + + vector <int> created_balls; private: int _initial_radiuss;//holds the intial ball radiuss which is 2 int _cannon_y_pos; // holds the cannons y position + int _score;//holds the score }; #endif \ No newline at end of file