Esempio n. 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();
                }
            }
        }
Esempio n. 2
0
 public TileWorldBuilder(Size size)
 {
     this.size = size;
 }
Esempio n. 3
0
 public GameMapBuilder(Size size)
     : base(size)
 {
 }
Esempio n. 4
0
 public TileWorld(Size burstSize)
 {
     this.map = new TileMap(burstSize);
 }