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: boom/boom.cpp
- Revision:
- 6:46d0caedf217
- Parent:
- 5:0a116644cce2
- Child:
- 7:1964f649676e
diff -r 0a116644cce2 -r 46d0caedf217 boom/boom.cpp
--- a/boom/boom.cpp Mon Apr 16 09:57:57 2018 +0000
+++ b/boom/boom.cpp Tue Apr 17 20:53:43 2018 +0000
@@ -22,13 +22,13 @@
void boom::draw(N5110 &lcd)
{
- lcd.drawCircle(boom_x,boom_y,3,FILL_TRANSPARENT);
+ lcd.drawCircle(boom_x,boom_y,2,FILL_TRANSPARENT);
}
void boom::update()
{
- boom_speed = rand()%5;
+ boom_speed = 3;
boom_y+= boom_speed;
// check the y origin to ensure that the paddle doesn't go off screen