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: BreakoutEngine/BreakoutEngine.cpp
- Revision:
- 69:db1354676fde
- Parent:
- 67:c362df66fac9
- Child:
- 72:7254d2a8a1cd
--- a/BreakoutEngine/BreakoutEngine.cpp Sun May 05 16:13:19 2019 +0000
+++ b/BreakoutEngine/BreakoutEngine.cpp Sun May 05 16:28:29 2019 +0000
@@ -93,6 +93,7 @@
{
reset_num_left();
_ball.init(_ball_size,_speed + _multiplier/2); // replace the 1 with a multiplier private variable that tracks the number of times continued from victory
+ _p1.recentre();
int pointer = 0;
for (it_R = listofBricks.begin(); it_R != listofBricks.end(); ++it_R){
if (pointer <= 5) {
@@ -376,9 +377,8 @@
// audio feedback
pad.tone(1000.0,0.1);
it_R -> hit();
- it_R -> hit();
//delete _brick11;
- if(it_R->hit() == true) {
+ if(it_R-> hit() == true) {
it_R -> set_posx(-100);
one_less();
}
@@ -405,7 +405,7 @@
it_L -> set_posx(-10);
// audio feedback
pad.tone(1000.0,0.1);
- if(it_R->hit() == true) {
+ if(it_R-> hit() == true) {
it_R -> set_posx(-100);
one_less();
}