Dynamic screen for PortaRF Tetris (#2803)

* Dynamic screen for PortaRF
* Format code
This commit is contained in:
RocketGod 2025-10-04 10:19:54 -07:00 committed by GitHub
parent 371b6b5079
commit 41dd0c4674
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 61 additions and 24 deletions

View file

@ -86,11 +86,17 @@ extern bool gameStarted;
extern unsigned char nextFigure;
extern short board[20][10];
extern const int colors[8];
extern const short DIMENSION;
extern const short DIMENSION_NEXT;
extern short DIMENSION;
extern short DIMENSION_NEXT;
extern short figuresX[7][4];
extern short figuresY[7][4];
// Dynamic screen values
extern int SCREEN_WIDTH;
extern int SCREEN_HEIGHT;
extern int BOARD_RIGHT;
extern int INFO_LEFT;
unsigned int GenerateRandomSeed();
void Init();
void ShowScore();
@ -148,7 +154,7 @@ class TetrisView : public View {
NavigationView& nav_;
Button dummy{
{screen_width, 0, 0, 0},
{240, 0, 0, 0},
""};
MessageHandlerRegistration message_handler_frame_sync{