12345678910111213141516171819202122232425262728293031 |
- #pragma once
- #include "Const.h"
- #include "Field.h"
- #include "Food.h"
- #include "Snake.h"
- #include "Game.h"
- #include "winconsole.h"
- #define esc (27) //Âûõîä èç èãðû ESC 27
- #define left (75) //Âëåâî Ñòðåëêà âëåâî 75
- #define right (77) //Âïðàâî Ñòðåëêà âïðàâî 77
- #define up (72) //Ââåðõ Ñòðåëêà ââåðõ 72
- #define down (80) //Âíèç Ñòðåëêà âíèç 80
- const char s_right = 'D';
- const char s_left = 'A';
- const char s_up = 'W';
- const char s_down = 'S';
- const char s_out = '0';
- const char head_symbol = '@';//Ñèìâîë äëÿ ãîëîâû çìåéêè
- const char tail_symbol = '#';//Ñèìâîë äëÿ õâîñòà çìåéêè
- const char field_symbol = ' ';//Ñèìâîë äëÿ çàïîëíåíèÿ ïîëÿ èãðû
- const char border_symbol = '*';//Ñèìâîë äëÿ ãðàíèöû ïîëÿ èãðû
- const char food_symbol = '+';//Ñèìâîë åäû
- #define stop __asm nop
-
|