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 FATFileSystem
Diff: Ball/Ball.cpp
- Revision:
- 15:d855e8c666e7
- Parent:
- 14:08ac9aaa34c3
- Child:
- 16:c8d68cbd1ae2
diff -r 08ac9aaa34c3 -r d855e8c666e7 Ball/Ball.cpp
--- a/Ball/Ball.cpp Wed May 08 14:54:19 2019 +0000
+++ b/Ball/Ball.cpp Wed May 08 18:51:59 2019 +0000
@@ -52,7 +52,7 @@
}
}
-void Ball::move_ball() //controls the ball position movement
+void Ball::move_ball() //controls using
{
_x_pos = _x_pos + _x_vel*10.0f/_frame_rate; //move ball position at rate proportional to velocity in each direction
_y_pos = _y_pos + _y_vel*10.0f/_frame_rate;