반응형 c언어게임7 [c언어]테트리스 게임 #include #include #include #include #include #include #pragma warning (disable : 4996) #define LEFT 75 #define RIGHT 77 #define UP 72 #define DOWN 80 #define ESC 27 #define BX 5 #define BY 1 #define BW 10 #define BH 20 void DrawScreen(); void DrawBoard(); BOOL ProcessKey(); void PrintBrick(BOOL Show); int GetAround(int x, int y, int b, int r); BOOL MoveDown(); void TestFull(); void PrintPreview(.. 2020. 4. 2. [c언어] 슈팅게임 #include #include #include #include #include #include #pragma warning (disable : 4996) #define ESC 27 #define MAXENEMY 10 #define MAXBALL 20 int fx; int bx, by; int Score; void gotoxy(int x, int y) { COORD Pos = { x - 1, y - 1 }; SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), Pos); } void CursorView(char show)//커서숨기기 { HANDLE hConsole; CONSOLE_CURSOR_INFO ConsoleCursor; hConsole = Get.. 2020. 4. 2. [c언어]숫자 야구 게임 #include #include #include #include #pragma warning (disable : 4996) int count = 1;//게임 횟수 int Player[3] = { 0 };//player 숫자 int AI[3] = { 0 };//ai 숫자 int p_Guess[3] = { 0 }, a_Guess[3] = { 0 };//추측숫자 int p_Strike=0, p_Ball=0, p_Out = 0; int a_Strike=0, a_Ball=0, a_Out = 0; void AIrand()//ai숫자 정하기 { AI[0] = (rand() % 9) + 1; while (true)//중복방지 { AI[1] = (rand() % 9) + 1; if (AI[1] != AI[0]) brea.. 2020. 4. 2. [c언어]빙고게임[EASY] #include #include #include #include #pragma warning (disable : 4996) int Bingo[5][5] = { 0 }; int Player[5][5] = { 0 }; int AI[5][5] = { 0 }; int A_set[25] = { 0 }; int myLine = 0; int aiLine = 0; bool already; int x = 0; int count = 1; void LineCheck()//빙고체크 { myLine = 0; aiLine = 0; for (int i = 0; i < 5; i++) { if (Player[0][i] == 0 && Player[1][i] == 0 && Player[2][i] == 0 && Player[3][i] ==.. 2020. 4. 2. 이전 1 2 다음 반응형