Subversion Repositories Kolibri OS

Rev

Rev 5231 | 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 ANIM_DELAY      (5)             // time between animation redraw
  20. #define ANIM_STEP       (25)            // default step for animation
  21.  
  22. #define START_COUNT     (2)             // tiles count for new game
  23.  
  24. #define WND_WIDTH       (400)           // main window width
  25. #define WND_HEIGHT      (400)           // main window height
  26.  
  27. #define GAME_BORDER     (30)            // minimum border size around board
  28. #define GAME_BG_COLOR   (0x34FAF8EF)    // main window background color
  29.  
  30. #define SCORE_HEIGHT    (21)            // minimum height for score text
  31.  
  32. #define BOARD_SPACING   (10)            // spacing between cells
  33. #define BOARD_COUNT     (4)             // row and column count
  34. #define BOARD_MAP_SIZE  (16)            // cells total count (row * column)
  35. #define BOARD_BG_COLOR  (0xBBADA0)      // board color
  36.  
  37. #define CELL_COLOR      (0xCDC0B4)      // cell color
  38.  
  39. #endif // DEFINES_H
  40.