common.h 753 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #pragma once
  2. #include <furi.h>
  3. #define TAG "GameVexed"
  4. #define SIZE_X 10
  5. #define SIZE_Y 8
  6. #define TILE_SIZE 8
  7. #define SIZE_X_BG 17 // 128/8 +1
  8. #define SIZE_Y_BG 9 // 64/8 +1
  9. #define WALL_TILE 9
  10. #define EMPTY_TILE 0
  11. #define MENU_PAUSED_COUNT 6
  12. #define MAIN_MENU_COUNT 3
  13. #define PAR_LABEL_SIZE 10
  14. // -- move -----------------
  15. #define MOVABLE_NOT 0
  16. #define MOVABLE_LEFT 1
  17. #define MOVABLE_RIGHT 2
  18. #define MOVABLE_BOTH 3
  19. #define MOVABLE_NOT_FOUND 128
  20. // -------------------------
  21. typedef uint8_t PlayGround[SIZE_Y][SIZE_X];
  22. typedef uint8_t BackGround[SIZE_Y_BG][SIZE_X_BG];
  23. typedef struct {
  24. uint8_t ofBrick[WALL_TILE];
  25. FuriString* bricksNonZero;
  26. uint8_t statsNonZero[WALL_TILE + 1];
  27. } Stats;