Const.h 783 B

12345678910111213141516171819202122232425262728293031
  1. #pragma once
  2. #include "Const.h"
  3. #include "Field.h"
  4. #include "Food.h"
  5. #include "Snake.h"
  6. #include "Game.h"
  7. #include "winconsole.h"
  8. #define esc (27) //Âûõîä èç èãðû ESC 27
  9. #define left (75) //Âëåâî Ñòðåëêà âëåâî 75
  10. #define right (77) //Âïðàâî Ñòðåëêà âïðàâî 77
  11. #define up (72) //Ââåðõ Ñòðåëêà ââåðõ 72
  12. #define down (80) //Âíèç Ñòðåëêà âíèç 80
  13. const char s_right = 'D';
  14. const char s_left = 'A';
  15. const char s_up = 'W';
  16. const char s_down = 'S';
  17. const char s_out = '0';
  18. const char head_symbol = '@';//Ñèìâîë äëÿ ãîëîâû çìåéêè
  19. const char tail_symbol = '#';//Ñèìâîë äëÿ õâîñòà çìåéêè
  20. const char field_symbol = ' ';//Ñèìâîë äëÿ çàïîëíåíèÿ ïîëÿ èãðû
  21. const char border_symbol = '*';//Ñèìâîë äëÿ ãðàíèöû ïîëÿ èãðû
  22. const char food_symbol = '+';//Ñèìâîë åäû
  23. #define stop __asm nop