Simple Pong game on NokiaLCD with PS2

Dependencies:   mbed PS2 NokiaLCD

Files at this revision

API Documentation at this revision

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
--- 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;
         }