示例#1
0
文件: Config.cs 项目: hmira/gametd
 public static Path CreatePath()
 {
     Path P = new Path();
     P.AddPoint(new Vector2d(45 + MapX * 1, 30 + 0 * MapY));
     P.AddPoint(new Vector2d(45 + MapX * 1, 30 + 4 * MapY));
     P.AddPoint(new Vector2d(45 + MapX * 3, 30 + 4 * MapY));
     P.AddPoint(new Vector2d(45 + MapX * 3, 30 + 1 * MapY));
     P.AddPoint(new Vector2d(45 + MapX * 5, 30 + 1 * MapY));
     P.AddPoint(new Vector2d(45 + MapX * 5, 30 + 4 * MapY));
     P.AddPoint(new Vector2d(45 + MapX * 7, 30 + 4 * MapY));
     P.AddPoint(new Vector2d(45 + MapX * 7, 30 + 1 * MapY));
     P.AddPoint(new Vector2d(45 + MapX * 9, 30 + 1 * MapY));
     P.AddPoint(new Vector2d(45 + MapX * 9, 30 + 6 * MapY));
     return P;
 }
示例#2
0
文件: Enemy.cs 项目: hmira/gametd
 public Enemy()
 {
     st = DateTime.Now;
     Elapsed = 0.0;
     P = Config.CreatePath();
 }