Exemplo n.º 1
0
        // public Trigger[] Triggers { get; set; }
        // private Vector2 _mapPosition;

        public Tentative.Map Clone()
        {
            Tentative.Map output  = new Tentative.Map();
            TextureMap    thisMap = TextureMap;

            output.TextureMap = new TentativeTitle.Maps.TextureMap(thisMap.TileTexture, thisMap.TextureWidth, thisMap.TextureHeight, thisMap.TileWidth, thisMap.TileHeight);
            output.ChangeDimensions(Width, Height);
            for (int x = 0; x < Width; x++)
            {
                for (int y = 0; y < Height; y++)
                {
                    Tentative.Tile outTile = new Tentative.Tile();
                    outTile.ID         = Tiles[x, y].ID;
                    outTile.Collidable = Tiles[x, y].Collidable;
                    output.Tiles[x, y] = outTile;
                }
            }
            return(output);
        }
Exemplo n.º 2
0
 private void CreateNewMap()
 {
     CurrentMap = new Map2.Map(_contentLoader, "tileset1", 30, 30, 32);
 }