示例#1
0
        public TileMap(Size burstSize)
        {
            outofmaptile.AddEntity(new ImpassableWall());
            this.burstSize = burstSize;
            size = new Size(burstSize.Width*2 + 1, burstSize.Height*2 + 1);
            center = new Point(burstSize.Width, burstSize.Height);
            tiles = new Tile[size.Width,size.Height];

            for (int i = 0; i < size.Width; i++)
            {
                for (int j = 0; j < size.Height; j++)
                {
                    tiles[i, j] = new Tile();
                }
            }
        }
示例#2
0
 public TileWorldBuilder(Size size)
 {
     this.size = size;
 }
示例#3
0
 public GameMapBuilder(Size size)
     : base(size)
 {
 }
示例#4
0
 public TileWorld(Size burstSize)
 {
     this.map = new TileMap(burstSize);
 }