This is a remake of tetris game for mbed. Please see detail here http://developer.mbed.org/users/sucrelv/notebook/tetris-game-on-mbed
Dependencies: 4DGL-uLCD-SE PinDetect SDFileSystem mbed-rtos mbed wave_player
Pieces.h@0:3b5e97ab5884, 2014-10-21 (annotated)
- Committer:
- sucrelv
- Date:
- Tue Oct 21 15:10:36 2014 +0000
- Revision:
- 0:3b5e97ab5884
initial upload
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sucrelv | 0:3b5e97ab5884 | 1 | #ifndef _PIECES_ |
sucrelv | 0:3b5e97ab5884 | 2 | #define _PIECES_ |
sucrelv | 0:3b5e97ab5884 | 3 | class Pieces |
sucrelv | 0:3b5e97ab5884 | 4 | { |
sucrelv | 0:3b5e97ab5884 | 5 | public: |
sucrelv | 0:3b5e97ab5884 | 6 | |
sucrelv | 0:3b5e97ab5884 | 7 | int GetBlockType (int pPiece, int pRotation, int pX, int pY); |
sucrelv | 0:3b5e97ab5884 | 8 | int GetXInitialPosition (int pPiece, int pRotation); |
sucrelv | 0:3b5e97ab5884 | 9 | int GetYInitialPosition (int pPiece, int pRotation); |
sucrelv | 0:3b5e97ab5884 | 10 | }; |
sucrelv | 0:3b5e97ab5884 | 11 | |
sucrelv | 0:3b5e97ab5884 | 12 | #endif |