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:
6:39cbec524483
Parent:
4:7ddd287a5d28
Child:
8:cebb2aca8e19
--- a/TetrisGame/TetrisGame.h	Sun May 31 17:35:30 2020 +0000
+++ b/TetrisGame/TetrisGame.h	Sun May 31 20:41:41 2020 +0000
@@ -13,35 +13,29 @@
     TetrisGame();
     ~TetrisGame();
     
-    void init(int number, int x, int y, int speed);
+    void init(int x, int y, int height, int width, int speed);
     void read_input(Gamepad &pad);
-    void update(Gamepad &pad);
+    void update(Gamepad &pad, N5110 &lcd);
     void draw(N5110 &lcd);
     //void play_game();
-    void exit_game();
-    void cancel_line();
     
     private:
     
-    void check_wall_collision(Gamepad &pad);
-    void check_tetromino_collisions();
+    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 gameover(N5110 &lcd);
+    void cancel_line(N5110 &lcd);
+    void exit_game(N5110 &lcd);
     
-    Tetromino _p1;
+    // Tetromino _p1;
     
-    int _number;
+
     int _x;
     int _y;
+    int _height;
+    int _width;
     int _speed;
-    int blocknumber;
-    int blockArray[5];
-    
-    //_old_tetromino;
-    
-    // int _p1x;
     
     Tetromino _tetromino;