Пример #1
0
 public TiledMooseMap(string name, int width, int height, int tileWidth, int tileHeight,
                      TiledMapTileDrawOrder renderOrder = TiledMapTileDrawOrder.RightDown,
                      TiledMapOrientation orientation   = TiledMapOrientation.Orthogonal,
                      Color?backgroundColor             = null)
     : this(new TiledMap(name, width, height, tileWidth, tileHeight, renderOrder, orientation, backgroundColor))
 {
     BuildLayerCache();
 }
Пример #2
0
 public TiledMap(string name, int width, int height, int tileWidth, int tileHeight,
                 TiledMapTileDrawOrder renderOrder, TiledMapOrientation orientation)
     : this()
 {
     Name        = name;
     Width       = width;
     Height      = height;
     TileWidth   = tileWidth;
     TileHeight  = tileHeight;
     RenderOrder = renderOrder;
     Orientation = orientation;
 }
 public TiledMap(string name, int width, int height, int tileWidth, int tileHeight, TiledMapTileDrawOrder renderOrder, TiledMapOrientation orientation, Color?backgroundColor = null)
     : this()
 {
     Name            = name;
     Width           = width;
     Height          = height;
     TileWidth       = tileWidth;
     TileHeight      = tileHeight;
     RenderOrder     = renderOrder;
     Orientation     = orientation;
     BackgroundColor = backgroundColor;
 }
Пример #4
0
 public CustomTiledMap(
     int firstGid,
     int width,
     int height,
     int tileWidth,
     int tileHeight,
     TiledMapOrientation orientation = TiledMapOrientation.Orthogonal) : base(
     firstGid,
     width,
     height,
     tileWidth,
     tileHeight
     )
 { }
Пример #5
0
 public TiledMap(
     int firstGid,
     int width,
     int height,
     int tileWidth,
     int tileHeight,
     TiledMapOrientation orientation = TiledMapOrientation.Orthogonal)
 {
     this.firstGid    = firstGid;
     this.width       = width;
     this.height      = height;
     this.tileWidth   = tileWidth;
     this.tileHeight  = tileHeight;
     this.orientation = orientation;
 }
Пример #6
0
        public TiledMap(GraphicsDevice graphicsDevice, int width, int height, int tileWidth, int tileHeight,
                        TiledMapOrientation orientation = TiledMapOrientation.Orthogonal)
        {
            _graphicsDevice = graphicsDevice;
            _layers         = new List <TiledLayer>();
            _objectGroups   = new List <TiledObjectGroup>();
            _tilesets       = new List <TiledTileset>();

            Width       = width;
            Height      = height;
            TileWidth   = tileWidth;
            TileHeight  = tileHeight;
            Properties  = new TiledProperties();
            Orientation = orientation;
        }
Пример #7
0
        public TiledMap(GraphicsDevice graphicsDevice, int width, int height, int tileWidth, int tileHeight,
                        TiledMapOrientation orientation = TiledMapOrientation.Orthogonal)
        {
            _graphicsDevice = graphicsDevice;
            _renderTarget   = new RenderTarget2D(graphicsDevice, width * tileWidth, height * tileHeight);
            _spriteBatch    = new SpriteBatch(graphicsDevice);
            _layers         = new List <TiledLayer>();
            _tilesets       = new List <TiledTileset>();

            Width       = width;
            Height      = height;
            TileWidth   = tileWidth;
            TileHeight  = tileHeight;
            Properties  = new TiledProperties();
            Orientation = orientation;
        }
Пример #8
0
        public TiledMap(GraphicsDevice graphicsDevice, 
            int width, 
            int height, 
            int tileWidth, 
            int tileHeight, 
            TiledMapOrientation orientation = TiledMapOrientation.Orthogonal)
        {
            Width = width;
            Height = height;
            TileWidth = tileWidth;
            TileHeight = tileHeight;
            Properties = new TiledProperties();

            _graphicsDevice = graphicsDevice;
            _layers = new List<TiledLayer>();
            _tilesets = new List<TiledTileset>();
            Orientation = orientation;
        }
Пример #9
0
        public TiledMap(
            int firstGid,
            int width,
            int height,
            int tileWidth,
            int tileHeight,
            TiledMapOrientation orientation = TiledMapOrientation.Orthogonal)
        {
            this.firstGid   = firstGid;
            this.width      = width;
            this.height     = height;
            this.tileWidth  = tileWidth;
            this.tileHeight = tileHeight;
            properties      = new Dictionary <string, string>();

            layers           = new List <TiledLayer>();
            _tilesets        = new List <TiledTileset>();
            objectGroups     = new List <TiledObjectGroup>();
            this.orientation = orientation;
        }