본문내용
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;
이정도만 보여드리겠습니다.
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;
이정도만 보여드리겠습니다.
소개글