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:
11:0183a52c1077
Parent:
10:7310c9440547
Child:
12:965b39a2e049
--- a/main.cpp	Mon Jun 01 21:02:52 2020 +0000
+++ b/main.cpp	Mon Jun 01 22:14:34 2020 +0000
@@ -20,7 +20,7 @@
 #define TETROMINO_WIDTH 4
 #define TETROMINO_HEIGHT 4
 // #define TETROMINO_SIZE 4
-#define TETROMINO_SPEED 1
+#define SPEED 1
 #define HEIGHT 48
 #define WIDTH 84
 // STRUCTS //
@@ -63,10 +63,8 @@
     while(1) {
         tetris.read_input(pad); // read input 
         tetris.update(pad, lcd);
-        //play_game(); // update game state 
         render(); // render the display
         wait(1.0f/fps); // wait one frame period 
-        break;
         
 }
 }
@@ -78,7 +76,7 @@
     pad.init(); // initialise Gamepad
     
     // initialise the game with correct tetromino sizes etc
-    tetris.init(TETROMINO_HEIGHT,TETROMINO_WIDTH,TETROMINO_SPEED);
+    tetris.init(SPEED);
     
 }