#include
#include
#include
#include
#include
#include
#include
#include“box_man.h“
int map[ROW][COLUMN] = {
{ 0 0 0 0 0 0 0 0 0 0 0 0 }
{ 0 1 0 1 1 1 1 1 1 1 0 0 }
{ 0 1 4 1 0 2 1 0 2 1 0 0 }
{ 0 1 0 1 0 1 0 0 1 1 1 0 }
{ 0 1 0 2 0 1 1 4 1 1 1 0 }
{ 0 1 1 1 0 3 1 1 1 4 1 0 }
{ 0 1 2 1 1 4 1 1 1 1 1 0 }
{ 0 1 0 0 1 0 1 1 0 0 1 0 }
{ 0 0 0 0 0 0 0 0 0 0 0 0 } };
enum POS{
WALL
FLOOR
BOX_DES
MAN
BOX
HIT
ALL
};
struct direct man;
IMAGE img[ALL];
void ChangeMap(struct direct *posenum POS prop){
map[pos->x][pos->y] = prop;
putimage((pos->y)* RATIO+Dis
评论
共有 条评论