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.
Field.h@1:b4aa36ae11ac, 2017-02-25 (annotated)
- Committer:
- sergun2311
- Date:
- Sat Feb 25 23:52:28 2017 +0000
- Revision:
- 1:b4aa36ae11ac
- Parent:
- 0:645509d95b8d
- Child:
- 3:36de55e63fdf
Tetris with gestures
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sergun2311 | 0:645509d95b8d | 1 | #define MAXX 10 |
sergun2311 | 0:645509d95b8d | 2 | #define MAXY 12 |
sergun2311 | 0:645509d95b8d | 3 | |
sergun2311 | 1:b4aa36ae11ac | 4 | extern int Field[MAXY][MAXX]; |
sergun2311 | 1:b4aa36ae11ac | 5 | int checkLine(); |
sergun2311 | 1:b4aa36ae11ac | 6 | bool checkGameOver(); |