Some random attempts at programming the retro console

Dependencies:   LCD_ST7735 mbed

Fork of RETRO_Pong_Mod by G. Andrew Duthie

Revision:
10:ba2dea5fffd1
Parent:
9:5c4a3e89a713
--- a/Game.h	Sat Feb 28 14:46:09 2015 +0000
+++ b/Game.h	Sat Feb 28 17:39:08 2015 +0000
@@ -12,14 +12,12 @@
     static const char* LIVES;
     static const char* SCORE;
     
-    static const int BALL_RADIUS = 3;
+    static const int BALL_RADIUS = 2;
     static const int BALL_STARTING_SPEED = 3;
     static const int PADDLE_WIDTH = 38;
     static const int PADDLE_HEIGHT = 4;
     static const int PADDLE_SPEED = 5;
     static const int BOUNCE_SOUND_TICKS = 2;
-    static const int GRAPH_HEIGHT = 40;
-    static const int GRAPH_SPACING = 2;
     static const char I2C_ADDR = 0x1C << 1;
 
     static const int CHAR_WIDTH = 8;
@@ -37,8 +35,6 @@
     int pwmTicksLeft;
     int lives;
     int score;
-    int graphX;    
-    bool mode;
     bool lastUp;
     bool lastDown;
     bool muted;
@@ -60,15 +56,10 @@
     void readRegisters(char address, char* buffer, int len);
     int writeRegister(char address, char value);
     void getXY(float& x, float& y);
-    void getXYZ(double& x, double& y, double& z);
 
     double convert(char* buffer);
     void printDouble(double value, int x, int y);
     
-    void drawAxes();
-    void drawPoint(int axis, double value);
-    void checkGraphReset();
-    
     void initialize();
     void initializeBall();