Exemplo n.º 1
0
        public static Map Level14()
        {
            var data=new []
            {
                "  x     x   xxxx      xx      x    ",
                "   x   x    x   x    x  x    xxx   ",
                "    x x     x   x   x    x   xxx   ",
                "     x      xxxx    xxxxxx    x    ",
                "    x       x       x    x         ",
                "   x        x       x    x    x    "
            };

            var map = new MapConstructor(data[0].Length,data.Length).Descriptions("Вы прошли все уровни",null).Map;

            for (int x=0;x<map.Width;x++)
                for (int y=0;y<map.Height;y++)
                    map[x,y]=data[y][x]==' '?null:new Brick();
            map[1, 1] = new Player();
            return map;
        }
Exemplo n.º 2
0
 public Map(int width, int height)
 {
     Elements = new ICreature[width, height];
     Player = new Player();
     Messages = new List<string>();
 }