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:
15:68114eae4053
Parent:
14:bd8c59a4b641
Child:
22:403759d2f093
--- a/TetrisGame/TetrisGame.h	Tue Jun 02 18:38:09 2020 +0000
+++ b/TetrisGame/TetrisGame.h	Tue Jun 02 21:07:17 2020 +0000
@@ -17,14 +17,10 @@
     void read_input(Gamepad &pad);
     void update(Gamepad &pad, N5110 &lcd);
     void draw(N5110 &lcd);
+    void fallenblocks(N5110 &lcd, int iH);
     //void play_game();
     
-//    volatile int X[50];
-//    volatile int Y[50];
-    volatile int floor_hit_flag;
-    volatile int a;
-    volatile int b;
-    private:
+//    private:
     
     void check_wall_collision(Gamepad &pad, N5110 &lcd);
     void check_tetromino_collisions(Gamepad &pad, N5110 &lcd);
@@ -35,13 +31,18 @@
     
     // Tetromino _p1;
     
-
+    volatile int X[50];
+    volatile int Y[50];
+    volatile int floor_hit_flag;
+    volatile int a;
+    volatile int b;
     int _px;
     int _py;
+    int x0;
+    int y0;
 //    int _tetromino_height;
 //    int _tetromino_width;
     int _speed;
-    volatile int iH;
     
     Tetromino _tetromino;