This is classic Tetris-style block stacking game, and designed to use the st7789 display driver to render graphics, and features real-time sound effects with a music engine.The game board is a 12-column by 16-row grid where randomly shaped blocks fall from the top, and your goal is to rotate and position them to complete full rows, which are then cleared for points.
To play, press Button A to start the game. Once the blocks begin falling, you can tilt the device left or right (using the built-in accelerometer) to move the block horizontally. Tilt forward to move the block down faster. Press Button B to rotate the block clockwise. As the game progresses, blocks fall faster, and your score increases with each cleared row.
The game ends when the blocks stack up and reach the top of the screen. Your current score is always displayed on the side, and if you score over 1000, it caps at 999. After a game over, the screen prompts you to press Button A to restart.
Programming Design
Source Code
By default, your device comes with the necessary firmware and libraries preinstalled. If you have modified or replaced the firmware or libraries, make sure the following files are present (download if need by click the link)