Const.h 808 B

1234567891011121314151617181920212223
  1. #pragma once
  2. #define esc (27) //Âûõîä èç èãðû ESC 27
  3. #define left (75) //Âëåâî Ñòðåëêà âëåâî 75
  4. #define right (77) //Âïðàâî Ñòðåëêà âïðàâî 77
  5. #define up (72) //Ââåðõ Ñòðåëêà ââåðõ 72
  6. #define down (80) //Âíèç Ñòðåëêà âíèç 80
  7. const enum DIRECTION {turn_left, turn_right, turn_up, turn_down, err};
  8. const char head_symbol = '@';//Ñèìâîë äëÿ ãîëîâû çìåéêè
  9. const char tail_symbol = '#';//Ñèìâîë äëÿ õâîñòà çìåéêè
  10. const int columns = 20;//Äëèíà èãðîâîãî ïîëÿ ïî ãîðèçîíòàëè
  11. const int rows = 20;//Äëèíà èãðîâîãî ïîëÿ ïî âåðòèêàëè
  12. const char field_symbol = ' ';//Ñèìâîë äëÿ çàïîëíåíèÿ ïîëÿ èãðû
  13. const char border_symbol = '*';//Ñèìâîë äëÿ ãðàíèöû ïîëÿ èãðû
  14. const int L = columns - 2; //Ìàêñèìàëüíûé ðàçìåð ìàññèâà çìåéêè
  15. const int Y = rows - 2;
  16. const char food_symbol = '+';//Ñèìâîë åäû
  17. #define stop __asm nop