include
include
include
include
void gotoxy(int x, int y)
{
COORD pos = { x,y };
SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), pos);
}
void ma_in(void) {
printf("▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩\n\t\t\tTHE 파쿠르\n▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩\n\n\n\n\n시작하려면 s키를 누르세요!");
char a;
a = getch();
while (1) {
if (a == 115) {
system("cls");
break;
}
}
}
void move(void){
int a, x = 0, y = 0;
while (1) {
a = getch();
if (a == 114) {
y--;
}
else if (a == 115) {
y++;
}
else if (a == 97) {
x--;
}
else {
x = x;
}
gotoxy(x, y);
printf("a");
Sleep(50);
system("cls");
}
}
int main() {
int xy[30][30];
RE:
ma_in();
system("cls");
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 3);
printf(" 이동: wsad, 활성화:F");
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), 0);
move();
}