All there but errors need fixing

Dependencies:   mbed

Overview:

Rookie Tetris is a jigsaw style game based on the classic Tetris.

A block will appear at the top of the screen, you must move it (your options for movement are left, right and down - you cannot move up the board). The block will stop when it if placed either on the floor of the board or on-top of another block.

Your goal is to fill a complete row of the board with the blocks; when you do so the row will delete and the pattern above it will drop down. The game is over when your pattern is tall enough to reach to the top of the board!

Controls:

Use the joystick to move your block! Your block cannot move out of the parameters of the board.

Pot 2 controls the contrast of the screen.

Revision:
23:cbfa9d1ee3db
Parent:
22:403759d2f093
Child:
25:a7c89c54454a
diff -r 403759d2f093 -r cbfa9d1ee3db TetrisGame/TetrisGame.h
--- a/TetrisGame/TetrisGame.h	Wed Jun 03 16:44:09 2020 +0000
+++ b/TetrisGame/TetrisGame.h	Wed Jun 03 19:52:59 2020 +0000
@@ -6,52 +6,60 @@
 #include "Gamepad.h"
 #include "Tetromino.h"
 
-class TetrisGame 
+class TetrisGame
 {
-    
-    public:
+
+public:
     TetrisGame();
     ~TetrisGame();
-    
+
     void init(int speed);
     void read_input(Gamepad &pad);
     void update(Gamepad &pad, N5110 &lcd);
     void draw(N5110 &lcd);
     void fallenblocks(N5110 &lcd, int iH);
     void clearline(N5110 &lcd, int iB);
+    void print_scores(N5110 &lcd);
+    void check_score(Gamepad &pad);
+    void currentscreen(N5110 &lcd);
     //void play_game();
-    
+
 //    private:
-    
+
     void check_wall_collision(Gamepad &pad, N5110 &lcd);
     void check_tetromino_collisions(Gamepad &pad, N5110 &lcd);
     // void check_score(Gamepad &pad);
-    
+
     void cancel_line(N5110 &lcd);
     void exit_game(N5110 &lcd);
-    
+
     // Tetromino _p1;
-    
+
     int count;
     volatile int X[50];
     volatile int Y[50];
     volatile int Z[50];
+    volatile int Q[50];
     volatile int floor_hit_flag;
     volatile int clear_line_flag;
     volatile int a;
     volatile int b;
     volatile int c;
+    volatile int d;
     int _px;
     int _py;
     int x0;
     int y0;
     int z0;
+    int q0;
 //    int _tetromino_height;
 //    int _tetromino_width;
     int _speed;
-    
+    int _score;
+    int buffer[84][48];
+
     Tetromino _tetromino;
-    
+
     Direction _d;
     float _mag;
 };