Control.h 492 B

12345678910111213141516
  1. #pragma once
  2. #include <iostream>
  3. #include <conio.h>
  4. #define left (75) //Âëåâî Ñòðåëêà âëåâî 75
  5. #define right (77) //Âïðàâî Ñòðåëêà âïðàâî 77
  6. #define up (72) //Ââåðõ Ñòðåëêà ââåðõ 72
  7. #define down (80) //Âíèç Ñòðåëêà âíèç 80
  8. #define esc (27) //Âûõîä èç èãðû ESC 27
  9. #define stop __asm nop
  10. extern char key;// äëÿ ââîäà êîäà ñèìâîëà ñ êëàâèàòóðû
  11. extern char keep_direct; // äëÿ ñîõðàíåíèÿ ñèìâîëà íàïðàâëåíèÿ äâèæåíèÿ.
  12. //extern int _getch(void); // ïîëó÷àåò ñèìâîë èç êîíñîëè áåç îòîáðàæåíèÿ