Esempio n. 1
0
        protected override void LoadContent()
        {
            _spriteBatch = new SpriteBatch(GraphicsDevice);

            // TODO: use this.Content to load your game content here
            _ogmoSettings = Content.Load <OgmoSettings>("sample");
            Console.WriteLine(_ogmoSettings.TileLayers.Length);

            _tilesetTexture = Content.Load <Texture2D>("cavesofgallet_tiles");

            _ogmoMap          = Content.Load <OgmoMap>("lv1");
            _ogmoMapTileLayer = new OgmoMapTileLayer(_ogmoMap.MapSize, _ogmoMap.MapOffset, _ogmoMap.TilesLayers[0],
                                                     new OgmoTileset(_ogmoSettings.TilesetSettings[0], _tilesetTexture));
        }
Esempio n. 2
0
 public abstract void Load(OgmoMap map);