![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Brickbreaker
Dependencies: NokiaLCD PS2 mbed
Fork of Pong by
Diff: main.cpp
- Revision:
- 2:d1031c73e187
- Parent:
- 1:3cc8b1413557
- Child:
- 3:e1328f84b107
diff -r 3cc8b1413557 -r d1031c73e187 main.cpp --- a/main.cpp Mon Feb 28 00:12:36 2011 +0000 +++ b/main.cpp Mon Feb 28 00:22:23 2011 +0000 @@ -79,6 +79,8 @@ b = g = 1; if(!sw2) { while(!sw2); + paddle2.setLives(3); + paddle1.setLives(3); state = RESET; break; } @@ -92,6 +94,8 @@ b = 0; if(!sw2) { // Reset if SW2 is pressed while(!sw2); + paddle2.setLives(3); + paddle1.setLives(3); state = RESET; break; }