#include "DxLib.h" #define CHMAX 3 typedef struct{ int x,y,img,muki,walking_flag; }ch_t; int image[16]; char Key[256]; int hantei[15][20] = { { 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1 }, { 1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1 }, { 1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1 }, { 1,0,0,0,0,1,1,1,1,1,0,0,1,1,0,0,0,0,0,1 }, { 1,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,1 }, { 1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,1 }, { 1,0,0,0,0,0,0,0,0,0,1,0,0,0,1,0,0,0,0,1 }, { 1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,1 }, { 1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1 }, { 1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,0,1,0,1 }, { 1,0,0,1,0,1,0,0,0,0,0,0,0,0,0,1,0,1,0,1 }, { 1,0,0,1,0,0,0,0,0,0,0,1,1,0,0,0,0,1,0,1 }, { 1,0,0,1,0,0,0,0,0,0,1,1,1,0,0,0,0,1,0,1 }, { 1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1 }, { 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1 }, }; //初期化 void ini(ch_t ch[CHMAX]){ for(int i=0;i