Esempio n. 1
0
        public TileMap(List <Tileset> tilesets, MapLayer baseLayer, MapLayer buildingLayer, MapLayer
                       splatterLayer, CollisionLayer collisionLayer)
        {
            this.tilesets       = tilesets;
            this.mapLayers      = new List <ILayer>();
            this.collisionLayer = collisionLayer;

            mapLayers.Add(baseLayer);

            AddLayer(buildingLayer);
            AddLayer(splatterLayer);

            mapWidth  = baseLayer.Width;
            mapHeight = baseLayer.Height;
        }
Esempio n. 2
0
        public TileMap(Tileset tileset, AnimatedTileset animatedTileset, MapLayer baseLayer)
        {
            this.animatedSet = animatedTileset;

            tilesets = new List <Tileset>();
            tilesets.Add(tileset);

            collisionLayer    = new CollisionLayer();
            animatedTileLayer = new AnimatedTileLayer();
            mapLayers         = new List <ILayer>();

            mapLayers.Add(baseLayer);

            mapWidth  = baseLayer.Width;
            mapHeight = baseLayer.Height;
        }
Esempio n. 3
0
        public TileMap(Tileset tileset, MapLayer baseLayer)
        {
            tilesets = new List <Tileset>
            {
                tileset
            };

            collisionLayer = new CollisionLayer();

            mapLayers = new List <ILayer>
            {
                baseLayer
            };

            mapWidth  = baseLayer.Width;
            mapHeight = baseLayer.Height;
        }