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:
- 6:d2aa47c92687
- Parent:
- 5:5ce8976cd303
- Child:
- 7:0e426e81c566
--- a/main.cpp Sat Mar 18 22:30:32 2017 +0000 +++ b/main.cpp Sat Mar 18 23:53:12 2017 +0000 @@ -1,14 +1,14 @@ /* Tetris game for touchscreen MicroTFT 320x240 and microcontorller LPC1768 * Uses SeeedStudioTFTv2 library * Copyright (c) 2017 Sergejs Popovs sergun2311 + * + * Derivation for RA8875 and to clean up a lot of magic numbers by D.Smart + * */ #include "mbed.h" #include <ctime> #include "playGround.h" -#include "Block.h" -#include "Field.h" -#include "Define.h" Serial pc(USBTX, USBRX); // Not required for display