c언어 게임 미로
본 자료는 미리보기를 지원하지 않습니다.
닫기
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
해당 자료는 3페이지 까지만 미리보기를 제공합니다.
3페이지 이후부터 다운로드 후 확인할 수 있습니다.

소개글

c언어 게임 미로에 대한 보고서 자료입니다.

목차

gotoxy함수, 컬러 함수, 커서 비시각화 함수를 추가로 사용 했습니다.

본문내용

#include
#include
#include
#include
#include
#include
#define bool int

enum Colors { blue = 9, yellowgreen, sky, red, pink, yellow, white };

void gotoxy(int x, int y)//내가 원하는 위치로 커서 이동
{
COORD pos = { x - 1, y - 1 };//커서가 X좌표에서 -1 한값. Y좌표에서 -1한 값으로 이동
SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), pos);// WIN32API 함수입니다. 이건 알필요 없어요
}

void Color(int background, int text)
{
SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), (background << 4) | text);
}

//[1] 커서 숨기기 : 1(보이기), 0(숨기기)
void CursorVisible(bool blnCursorVisible) // Console.CursorVisible = false;
{
CONSOLE_CURSOR_INFO cursorInfo;
GetConsoleCursorInfo(GetStdHandle(STD_OUTPUT_HANDLE), &cursorInfo);
cursorInfo.bVisible = blnCursorVisible;
SetConsoleCursorInfo(GetStdHandle(STD_OUTPUT_HANDLE), &cursorInfo);
}




void Map();
void Character();
void Move();
void End();

const int Map_g[25][25] = {
{ 1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1 },
{ 1,0,1,0,0,0,0,0,0,0,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1 },
{ 1,0,0,0,1,1,1,0,1,0,0,0,1,0,1,0,0,1,1,0,0,0,0,1,1 },
{ 1,0,1,0,1,0,1,0,1,0,1,0,0,0,1,1,0,1,0,0,1,1,0,0,1 },
{ 1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,1,0,1,1,0,0,1,1,0,1 },
.
.
.
.
.
.

추천자료

  • 가격2,000
  • 페이지수10페이지
  • 등록일2017.12.10
  • 저작시기2017.11
  • 파일형식압축파일(zip)
  • 자료번호#1040349
본 자료는 최근 2주간 다운받은 회원이 없습니다.
청소해
다운로드 장바구니