multiplayer pong game for LPC 1768

Dependencies:   mbed MbedJSONValue mbed-rtos Adafruit_ST7735 Adafruit_GFX EthernetInterface DebouncedInterrupt

Committer:
vsoltan
Date:
Sun Nov 15 21:55:35 2020 +0000
Revision:
18:32fce82690a1
Parent:
17:32ae1f106002
Child:
22:1c49e1fae846
added different types of server response and handling for each case

Who changed what in which revision?

UserRevisionLine numberNew contents of line
vsoltan 16:7fd48cda0773 1
vsoltan 16:7fd48cda0773 2 #ifndef GRAPHICS_H
vsoltan 16:7fd48cda0773 3 #define GRAPHICS_H
vsoltan 16:7fd48cda0773 4
vsoltan 16:7fd48cda0773 5 #include "Adafruit_ST7735.h"
vsoltan 16:7fd48cda0773 6 #include "gamestate.h"
vsoltan 16:7fd48cda0773 7
vsoltan 16:7fd48cda0773 8 #define P_MOSI p5
vsoltan 16:7fd48cda0773 9 #define P_MISO p6
vsoltan 16:7fd48cda0773 10 #define P_SOCK p7
vsoltan 16:7fd48cda0773 11 #define P_CS p9
vsoltan 16:7fd48cda0773 12 #define P_RS p20
vsoltan 16:7fd48cda0773 13 #define P_DC p19
vsoltan 16:7fd48cda0773 14
vsoltan 18:32fce82690a1 15 class GameState;
vsoltan 18:32fce82690a1 16
vsoltan 16:7fd48cda0773 17 class Graphics {
vsoltan 16:7fd48cda0773 18 private:
vsoltan 16:7fd48cda0773 19 Adafruit_ST7735 *tft;
vsoltan 16:7fd48cda0773 20 public:
vsoltan 16:7fd48cda0773 21 Graphics();
vsoltan 16:7fd48cda0773 22 void renderLaunchScreen();
vsoltan 18:32fce82690a1 23 void renderWaitingRoom();
vsoltan 16:7fd48cda0773 24 void renderGameState(GameState *gs);
vsoltan 17:32ae1f106002 25 void renderBall(GameState *gs);
vsoltan 17:32ae1f106002 26 void renderPlayers(GameState *gs);
vsoltan 16:7fd48cda0773 27 };
vsoltan 16:7fd48cda0773 28
vsoltan 16:7fd48cda0773 29 #endif // GRAPHICS_H