|
在迷宫中找出几个数之和是7的数并把它们吃掉后再吃掉7就获胜了。(编得简单了点,但这是我编的第一个游戏请多指教)
#define UP 0x4800 #define DOWN 0x5000 #define LEFT 0x4b00 #define RIGHT 0x4d00 #include "conio.h" #include "time.h" #include "stdlib.h" int k[17][24]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,1,0,0,0,0,0,0,0,0,0,0,0,7,0,0,0,0,0,0,0,0,0,0, 0,1,1,1,1,1,1,0,0,0,0,0,0,1,0,0,0,0,0,1,1,1,0,0, 0,1,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0, 0,3,1,1,1,1,0,1,1,1,1,1,0,1,0,1,1,1,1,1,1,1,0,0, 0,1,0,0,1,0,1,0,0,0,0,1,0,1,1,1,0,0,0,0,0,0,0,0, &n
< 1 > < 2 > |