Subversion Repositories Kolibri OS

Rev

Rev 5229 | Go to most recent revision | 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. #define false   (0)
  14. #define true    (1)
  15.  
  16. #define FONT_WIDTH      (5)
  17. #define FONT_HEIGHT     (9)
  18.  
  19. #define ANI_DELAY       (2)             // time between animation redraw
  20. #define ANI_APPEAR_STEP (15)            // default step for appear animation
  21. #define ANI_MOVE_STEP   (25)            // default step for move animation
  22.  
  23. #define START_COUNT     (2)             // tiles count for new game
  24.  
  25. #define WND_WIDTH       (400)           // main window width
  26. #define WND_HEIGHT      (400)           // main window height
  27.  
  28. #define GAME_BORDER     (30)            // minimum border size around board
  29. #define GAME_BG_COLOR   (0x34FAF8EF)    // main window background color
  30.  
  31. #define SCORE_HEIGHT    (21)            // minimum height for score text
  32.  
  33. #define BOARD_SPACING   (10)            // spacing between cells
  34. #define BOARD_COUNT     (4)             // row and column count
  35. #define BOARD_MAP_SIZE  (16)            // cells total count (row * column)
  36. #define BOARD_BG_COLOR  (0xBBADA0)      // board color
  37.  
  38. #define CELL_COLOR      (0xCDC0B4)      // cell color
  39.  
  40. #endif // DEFINES_H
  41.