前几天 偶然的接触的ege,瞬间就被她的强大吸引了。在网上某篇文章的启发下,写了这段code,还有好多细节没处理好呢
对于如何包装就完全不知道额(我想弄成.exe)最近还想写个扫雷的程序,就是行动不起来,好懒啊
游戏方式 awsd,和上下左右 控制小人的上下左右移动。
效果图:
#include"graphics.h"
#define LENGTH 600
#define WIDETH 300
#define L 20
#define W 10
bool victory = false;
int x=1,y=1;//next
int X=0,Y=0;//now
int map[W][L]=
{
{1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1},
{1, 2, 1, 1, 0, 0, 1, 0, 0, 1, 1, 1, 1, 0, 0, 0, 1, 0, 0, 1},
{1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 1, 0, 1, 0, 1, 1, 0, 1},
{1, 0, 1, 0, 1, 0, 1, 1, 0, 1, 0, 1, 1, 0, 1, 0, 1, 1, 0,