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:
- 111:4848c399fae0
- Parent:
- 109:5ba766522df0
- Child:
- 114:280903dd7e06
--- a/BreakoutEngine/BreakoutEngine.cpp Wed May 08 01:57:25 2019 +0000
+++ b/BreakoutEngine/BreakoutEngine.cpp Wed May 08 02:50:07 2019 +0000
@@ -88,6 +88,8 @@
{
reset_num_left(); // resets _number_left to 18
_paddle.recentre(); // recentres the paddle on screen
+ _paddle.reset_lives(); // resets paddle lives
+ //printf("Paddle lives = %d", _paddle.get_lives());
_ball.init(_ball_size,_speed + _multiplier/2, _paddle.get_pos().x + (PADDLE_WIDTH/2)); // resets the ball position to above the paddle, and increases its speed depending on the _multiplier
int pointer = 0; // tracks the rows, if 6 bricks are placed, it moves to the next row