Source: game.h
#include<iostream>
#include<windows.h>
using namespace std;
void gotoxy(int xpos,int ypos){
COORD scrn;
HANDLE hOutput = GetStdHandle(STD_OUTPUT_HANDLE);
scrn.X = xpos; scrn.Y = ypos;
SetConsoleCursorPosition(hOutput,scrn);
}
void SetCursorVisible(BOOL _bvisible,DWORD _dwsize){
CONSOLE_CURSOR_INFO CCl;
CCl.bVisible = _bvisible;
CCl.dwSize = _dwsize;
SetConsoleCursorInfo(GetStdHandle(STD_OUTPUT_HANDLE),&CCl);
}
void SetColor(short color,short backgroundccolor){
unsigned short forecolor= color + 16 * backgroundccolor;
HANDLE hCon = GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleTextAttribute(hCon,forecolor);
}