multiplayer pong game for LPC 1768

Dependencies:   mbed MbedJSONValue mbed-rtos Adafruit_ST7735 Adafruit_GFX EthernetInterface DebouncedInterrupt

Revision:
36:46bb54b669bc
Parent:
33:98ba7b0b8c2b
Child:
37:8a0fc62a0512
--- a/graphics.cpp	Sat Nov 28 03:52:53 2020 +0000
+++ b/graphics.cpp	Sat Nov 28 04:21:08 2020 +0000
@@ -97,13 +97,17 @@
     bool winner = gs->getPlayerOneScore() > gs->getPlayerTwoScore() ? 0 : 1;  
     
     if (winner == gs->getLocalPlayerNum()) {
-        tft->printf("You won :)");
+        tft->printf("You won, %i:%i", 
+            gs->getPlayerScore(winner), gs->getPlayerScore(1 - winner));
     } else {
-        printf("You lost :("); 
+        tft->printf("You lost, %i:%i", 
+            gs->getPlayerScore(1 - winner), gs->getPlayerScore(winner)); 
     }
     
     tft->setTextCursor(15, 60); 
-    tft->printf("Press any button to play again!");
+    tft->printf("Press any button");
+    tft->setTextCursor(15, 70);
+    tft->printf("to play again!"); 
 }
 
 void Graphics::renderCountdown(GameState *gs) {