#ifndef TETRIS_H #define TETRIS_H #include "Menu.h" #define DEF_SPEED 30 typedef struct { uint8_t mat[4][4]; int id; int rot; int col; int row; } piece_t; typedef struct { uint8_t board[height][width]; piece_t curr_piece; int started; uint32_t seed; int score; int key_state[4]; } tetris_t; int tetris_init (); int tetris_update (); #endif