![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
All there but errors need fixing
Dependencies: mbed
Overview:
Rookie Tetris is a jigsaw style game based on the classic Tetris.
A block will appear at the top of the screen, you must move it (your options for movement are left, right and down - you cannot move up the board). The block will stop when it if placed either on the floor of the board or on-top of another block.
Your goal is to fill a complete row of the board with the blocks; when you do so the row will delete and the pattern above it will drop down. The game is over when your pattern is tall enough to reach to the top of the board!
Controls:
Use the joystick to move your block! Your block cannot move out of the parameters of the board.
Pot 2 controls the contrast of the screen.
Diff: TetrisGame/TetrisGame.h
- Revision:
- 22:403759d2f093
- Parent:
- 15:68114eae4053
- Child:
- 23:cbfa9d1ee3db
diff -r 6d4dd906edde -r 403759d2f093 TetrisGame/TetrisGame.h --- a/TetrisGame/TetrisGame.h Wed Jun 03 13:34:52 2020 +0000 +++ b/TetrisGame/TetrisGame.h Wed Jun 03 16:44:09 2020 +0000 @@ -18,6 +18,7 @@ void update(Gamepad &pad, N5110 &lcd); void draw(N5110 &lcd); void fallenblocks(N5110 &lcd, int iH); + void clearline(N5110 &lcd, int iB); //void play_game(); // private: @@ -31,15 +32,20 @@ // Tetromino _p1; + int count; volatile int X[50]; volatile int Y[50]; + volatile int Z[50]; volatile int floor_hit_flag; + volatile int clear_line_flag; volatile int a; volatile int b; + volatile int c; int _px; int _py; int x0; int y0; + int z0; // int _tetromino_height; // int _tetromino_width; int _speed;