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: main.cpp
- Revision:
- 27:da17a102c8d0
- Parent:
- 24:74a53dd49806
- Child:
- 28:b6f048f46ffb
diff -r 9009ad1077f8 -r da17a102c8d0 main.cpp --- a/main.cpp Thu May 21 08:58:21 2020 +0000 +++ b/main.cpp Thu May 21 17:49:49 2020 +0000 @@ -87,7 +87,7 @@ objects.draw_cannon(lcd);//draws the cannon game_check = functions.cannon_smash(lcd, objects); //checks if the cannon has been hit by a ball lcd.refresh(); - wait(0.1 + extra_speed); + wait(0.1f + extra_speed); //added this so the cannon moves faster than the balls lcd.clear();