We'll display the rows cleared count on the DOM instead of in the game window itself, so you can delete the ScreenHeight constant from the file. We no longer need additional space to accommodate for the score text:
namespace Constants { const int BoardColumns = 10; const int BoardHeight = 720; const int BoardRows = 20; const int BoardWidth = 360; const int Offset = BoardWidth / BoardColumns; const int PieceSize = 4; // const int ScreenHeight = BoardHeight + 50; <----- Delete this line}
No changes need to be made to the Piece class files (piece.cpp/piece.h). However, we will need to update the Board class. Let's start with the header file (board.h). Starting with the bottom and working our way up, let's update the ...