Tetris game on mikroTFT touchscreen and LPC1768
playGround.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:
- 2:6b6986c3d2bd
Tetris with gestures
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sergun2311 | 0:645509d95b8d | 1 | #include "mbed.h" |
sergun2311 | 0:645509d95b8d | 2 | #include "SeeedStudioTFTv2.h" |
sergun2311 | 0:645509d95b8d | 3 | #include "Block.h" |
sergun2311 | 0:645509d95b8d | 4 | |
sergun2311 | 0:645509d95b8d | 5 | void drawMap(); |
sergun2311 | 1:b4aa36ae11ac | 6 | void drawMapV2(); |
sergun2311 | 0:645509d95b8d | 7 | void setColor( int y, int x, int color ); |
sergun2311 | 0:645509d95b8d | 8 | void TFTInit(); |
sergun2311 | 0:645509d95b8d | 9 | void drawBlock(Block NewBlock); |
sergun2311 | 0:645509d95b8d | 10 | void drawFrame(); |
sergun2311 | 0:645509d95b8d | 11 | void clrBlock(Block NewBlock); |
sergun2311 | 1:b4aa36ae11ac | 12 | void saveToField(Block NewBlock); |
sergun2311 | 1:b4aa36ae11ac | 13 | int getGesture(); |
sergun2311 | 1:b4aa36ae11ac | 14 | bool TouchStatus(); |
sergun2311 | 1:b4aa36ae11ac | 15 | Block doGest(Block NewBlock); |
sergun2311 | 1:b4aa36ae11ac | 16 | void gameOver(int score); |