예제 #1
0
        private TileMap()
        {
            tilesets = new List <Tileset>();

            collisionLayer    = new CollisionLayer();
            animatedTileLayer = new AnimatedTileLayer();
            mapLayers         = new List <ILayer>();
        }
예제 #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;
        }
예제 #3
0
        public TileMap(
            List <Tileset> tilesets,
            AnimatedTileset animatedTileSet,
            MapLayer baseLayer,
            MapLayer buildingLayer,
            MapLayer splatterLayer,
            CollisionLayer collisionLayer,
            AnimatedTileLayer animatedLayer)
        {
            this.tilesets          = tilesets;
            this.animatedSet       = animatedTileSet;
            this.mapLayers         = new List <ILayer>();
            this.collisionLayer    = collisionLayer;
            this.animatedTileLayer = animatedLayer;

            mapLayers.Add(baseLayer);

            AddLayer(buildingLayer);
            AddLayer(splatterLayer);

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