mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-11-29 16:06:57 -05:00
Dynamic screen for PortaRF Tetris (#2803)
* Dynamic screen for PortaRF * Format code
This commit is contained in:
parent
371b6b5079
commit
41dd0c4674
2 changed files with 61 additions and 24 deletions
|
|
@ -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{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue