Simple Pong game on NokiaLCD with PS2
Dependencies: mbed PS2 NokiaLCD
Revision 2:d1031c73e187, committed 2011-02-28
- Comitter:
- wjohnsto
- Date:
- Mon Feb 28 00:22:23 2011 +0000
- Parent:
- 1:3cc8b1413557
- Commit message:
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
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; }