assets.h 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. #pragma once
  2. #include <gui/icon.h>
  3. #ifndef _sprites_h
  4. #define _sprites_h
  5. #define bmp_font_width 24 // in bytes
  6. #define bmp_font_height 6
  7. #define bmp_font_width_pxs 192
  8. #define bmp_font_height_pxs 48
  9. #define CHAR_MAP " 0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ.,-_(){}[]#"
  10. #define UICHAR_WIDTH 4
  11. #define CHAR_HEIGHT 6
  12. #define BMP_GUN_WIDTH 32
  13. #define BMP_GUN_HEIGHT 32
  14. #define BMP_FIRE_WIDTH 24
  15. #define BMP_FIRE_HEIGHT 20
  16. #define BMP_IMP_WIDTH 32
  17. #define BMP_IMP_HEIGHT 32
  18. #define BMP_IMP_COUNT 5
  19. #define BMP_FIREBALL_WIDTH 16
  20. #define BMP_FIREBALL_HEIGHT 16
  21. #define BMP_DOOR_WIDTH 100
  22. #define BMP_DOOR_HEIGHT 100
  23. #define BMP_ITEMS_WIDTH 16
  24. #define BMP_ITEMS_HEIGHT 16
  25. #define BMP_ITEMS_COUNT 2
  26. #define BMP_LOGO_WIDTH 128
  27. #define BMP_LOGO_HEIGHT 64
  28. #define GRADIENT_WIDTH 2
  29. #define GRADIENT_HEIGHT 8
  30. #define GRADIENT_COUNT 8
  31. #define GRADIENT_WHITE 7
  32. #define GRADIENT_BLACK 0
  33. // Fonts
  34. extern const uint8_t zero[];
  35. extern const uint8_t one[];
  36. extern const uint8_t two[];
  37. extern const uint8_t three[];
  38. extern const uint8_t four[];
  39. extern const uint8_t five[];
  40. extern const uint8_t six[];
  41. extern const uint8_t seven[];
  42. extern const uint8_t eight[];
  43. extern const uint8_t nine[];
  44. extern const uint8_t A[];
  45. extern const uint8_t B[];
  46. extern const uint8_t C[];
  47. extern const uint8_t D[];
  48. extern const uint8_t E[];
  49. extern const uint8_t F[];
  50. extern const uint8_t G[];
  51. extern const uint8_t H[];
  52. extern const uint8_t I[];
  53. extern const uint8_t J[];
  54. extern const uint8_t K[];
  55. extern const uint8_t L[];
  56. extern const uint8_t M[];
  57. extern const uint8_t N[];
  58. extern const uint8_t O[];
  59. extern const uint8_t P[];
  60. extern const uint8_t Q[];
  61. extern const uint8_t R[];
  62. extern const uint8_t S[];
  63. extern const uint8_t T[];
  64. extern const uint8_t U[];
  65. extern const uint8_t V[];
  66. extern const uint8_t W[];
  67. extern const uint8_t X[];
  68. extern const uint8_t Y[];
  69. extern const uint8_t Z[];
  70. extern const uint8_t dot[];
  71. extern const uint8_t comma[];
  72. extern const uint8_t dash[];
  73. extern const uint8_t underscore[];
  74. extern const uint8_t bracket_open[];
  75. extern const uint8_t bracket_close[];
  76. extern const uint8_t cross_left[];
  77. extern const uint8_t cross_right[];
  78. extern const uint8_t pacman_left[];
  79. extern const uint8_t pacman_right[];
  80. extern const uint8_t box[];
  81. extern const uint8_t* char_arr[48];
  82. extern const uint8_t gradient[];
  83. //extern const uint8_t gun[]
  84. //extern const uint8_t gun_mask[]
  85. extern const uint8_t gun[];
  86. extern const uint8_t gun_mask[];
  87. extern const uint8_t imp_inv[];
  88. extern const uint8_t imp_mask_inv[];
  89. extern const uint8_t fireball[];
  90. extern const uint8_t fireball_mask[];
  91. extern const uint8_t item[];
  92. extern const uint8_t item_mask[];
  93. extern const uint8_t door[];
  94. #endif