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.
Tetris/Block.h
- Committer:
- WiredHome
- Date:
- 2020-03-29
- Revision:
- 11:2bdc83648d7f
- Parent:
- 7:0e426e81c566
File content as of revision 11:2bdc83648d7f:
#ifndef BLOCK_H #define BLOCK_H class Block { public: Block(); ~Block(); void moveLeft(); void moveRight(); void rotateLeft(); void rotateRight(); bool CheckBottom(); bool CheckLeft(); bool CheckRight(); bool CheckRotateLeft(); bool CheckRotateRight(); unsigned char form; unsigned char nextForm; unsigned char angle; int x; int y; bool Active; }; #endif