API를 이용한 지렁이 게임
본 자료는 미만의 자료로 미리보기를 제공하지 않습니다.
닫기
  • 1
해당 자료는 0페이지 까지만 미리보기를 제공합니다.
0페이지 이후부터 다운로드 후 확인할 수 있습니다.

소개글

API를 이용한 지렁이 게임에 대한 보고서 자료입니다.

본문내용

LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg,
WPARAM wParam, LPARAM lParam)
{
static int up=0;
static int notUp=0;
static int down=0;
static int notDown=0;
static int left=0;
static int notLeft=1;
static int right=1;
static int notRight=0;
static int nodeN=5;//지렁이 개수.
static int speedTime=200; //초기 스피드
static int food=0; //먹은 먹이수
int i=0;
HDC hdc;
PAINTSTRUCT ps;
HBRUSH MyBrush, oldBrush;
char *text="#이동:방향키 #종료:ESC #먹이:노란색 #장애물:회색";
switch (uMsg)
{
static int c[8],d[8];//장애물
static int a[5],b[5];//먹이
static int x[10];//뱀의 몸통
static int y[10];//뱀의 몸통
x[0]=40;
x[1]=20;
x[2]=0;
y[0]=y[1]=y[2]=170;

이정도만 보여드리겠습니다.

키워드

지렁이,   뱀꼬리,   snake,   API,   게임
  • 가격3,000
  • 페이지수1페이지
  • 등록일2010.08.02
  • 저작시기2010.6
  • 파일형식기타(egg)
  • 자료번호#626000
본 자료는 최근 2주간 다운받은 회원이 없습니다.
청소해
다운로드 장바구니