Tetris Base Game
Dependencies: 4DGL-uLCD-SE SDFileSystem mbed-rtos mbed wave_player
Pieces.h@0:1858f2b100fd, 20 months ago (annotated)
- Committer:
- jsanchez307
- Date:
- Wed Nov 30 21:57:25 2022 +0000
- Revision:
- 0:1858f2b100fd
Tetris Skeleton V 1.0
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| jsanchez307 | 0:1858f2b100fd | 1 | #ifndef _PIECES_ |
| jsanchez307 | 0:1858f2b100fd | 2 | #define _PIECES_ |
| jsanchez307 | 0:1858f2b100fd | 3 | |
| jsanchez307 | 0:1858f2b100fd | 4 | // Pieces Header to Support Game Pieces |
| jsanchez307 | 0:1858f2b100fd | 5 | |
| jsanchez307 | 0:1858f2b100fd | 6 | class Pieces |
| jsanchez307 | 0:1858f2b100fd | 7 | { |
| jsanchez307 | 0:1858f2b100fd | 8 | public: |
| jsanchez307 | 0:1858f2b100fd | 9 | |
| jsanchez307 | 0:1858f2b100fd | 10 | int GetBlockType(int pPiece, int pRotation, int pX, int pY); |
| jsanchez307 | 0:1858f2b100fd | 11 | int GetXInitialPosition(int pPiece, int pRotation); |
| jsanchez307 | 0:1858f2b100fd | 12 | int GetYInitialPosition(int pPiece, int pRotation); |
| jsanchez307 | 0:1858f2b100fd | 13 | }; |
| jsanchez307 | 0:1858f2b100fd | 14 | |
| jsanchez307 | 0:1858f2b100fd | 15 | #endif // _PIECES_ |