![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Tetris for the RA8875, derived from another users implementation.
Fork of Tetris by
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.
Diff: main.cpp
- Revision:
- 2:6b6986c3d2bd
- Parent:
- 1:b4aa36ae11ac
- Child:
- 4:107d1d5a642e
diff -r b4aa36ae11ac -r 6b6986c3d2bd main.cpp --- 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; }