Tetris for the RA8875, derived from another users implementation.

Dependencies:   RA8875

Fork of Tetris by Sergejs Popovs

Tetris, adapted to the RA8875 graphics library and display.

As currently implemented, this version is defined for the 800x480 display. A number of macros can adapt it for other screen resolutions.

Further, while presently configured for landscape mode, it should be fairly easy to reconfigure it for portrait mode.

Revision:
2:6b6986c3d2bd
Parent:
1:b4aa36ae11ac
Child:
4:107d1d5a642e
--- a/main.cpp	Sat Feb 25 23:52:28 2017 +0000
+++ b/main.cpp	Fri Mar 03 13:19:26 2017 +0000
@@ -17,6 +17,8 @@
         Block NewBlock;
         flag = false;
         drawMap();
+        drawScore(score);
+        drawNextBlock(NewBlock);
         while( !flag ) {
             drawMap();
             drawBlock(NewBlock);
@@ -39,6 +41,7 @@
             }
         }
         score += checkLine();
+        clrNextBlock(NewBlock);
         if ( checkGameOver() )
             break;
     }