Subversion Repositories Kolibri OS

Rev

Rev 5231 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. #ifndef DEFINES_H
  2. #define DEFINES_H
  3.  
  4. #include <string.h>
  5. #include <stdlib.h>
  6. #include <keys.h>
  7. #include <menuet/gui.h>
  8.  
  9. inline void enable_scancode();
  10. inline void clear_key_buffer();
  11. inline void vsync();
  12.  
  13. inline __u32 text_length_px(__u32 len);
  14.  
  15. #define false   (0)
  16. #define true    (1)
  17.  
  18. #define FONT_WIDTH      (5)
  19. #define FONT_HEIGHT     (9)
  20.  
  21. #define ANI_DELAY       (2)             // time between animation redraw
  22. #define ANI_APPEAR_STEP (15)            // default step for appear animation
  23. #define ANI_MOVE_STEP   (25)            // default step for move animation
  24.  
  25. #define START_COUNT     (2)             // tiles count for new game
  26.  
  27. #define WND_WIDTH       (400)           // main window width
  28. #define WND_HEIGHT      (400)           // main window height
  29.  
  30. #define GAME_BORDER     (30)            // minimum border size around board
  31. #define GAME_BG_COLOR   (0xFAF8EF)      // main window background color
  32.  
  33. #define SCORE_HEIGHT    (21)            // minimum height for score text
  34.  
  35. #define BOARD_SPACING   (10)            // spacing between cells
  36. #define BOARD_COUNT     (4)             // row and column count
  37. #define BOARD_MAP_SIZE  (16)            // cells total count (row * column)
  38. #define BOARD_BG_COLOR  (0xBBADA0)      // board color
  39.  
  40. #define CELL_COLOR      (0xCDC0B4)      // cell color
  41.  
  42. #endif // DEFINES_H
  43.