标签:
//首先用枚举 列出方向 上,下,左,右(枚举的最后一位数后不用符号 否则会报错)
public enum dro
{
up = 1,
down = 2,
left = 3,
right = 4
}
//坐标 定义 二维坐标 地图 (横坐标x,纵坐标y)
public struct zuobiao {
public int x;
public int y;
}
//玩家 为玩家定义她 所在的坐标位置 和游戏中的生死
public struct Player
{
public Point dro; //所在坐标
public bool life; //生死
}
标签:
原文地址:http://www.cnblogs.com/scriptzky/p/D-Z-L-L.html