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 FXOS8700CQ mbed-rtos
Diff: Game_two/Facebook_files/Facebook.cpp
- Revision:
- 19:903d67bb0dea
- Parent:
- 14:abe64fe0b6a5
- Child:
- 26:c60becf3f840
--- a/Game_two/Facebook_files/Facebook.cpp Sun Apr 21 11:07:43 2019 +0000 +++ b/Game_two/Facebook_files/Facebook.cpp Sun Apr 21 12:14:59 2019 +0000 @@ -12,9 +12,9 @@ void Facebook::init(int speed) { - int position = rand() % 8; // randomise initial direction. + int position = rand() % 8; // randomise initial direction and position. - // 4 possibilities. Get random modulo and set velocities accordingly + // 8 possibilities. Get random modulo and set velocities and position accordingly if (position == 0) { _x = -9; _y = 12;