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