示例#1
0
        protected override void LoadContent()
        {
            Levels.LoadLevels(Content);
            Tiling.ReloadTiles(Content);
            Backgrounds.ReloadBackgrounds(Content);
            Camera.Reinitialize();

            spriteBatch = new SpriteBatch(GraphicsDevice);
        }
示例#2
0
        protected override void Draw(GameTime gameTime)
        {
            GraphicsDevice.Clear(Backgrounds.BackColor);

            spriteBatch.Begin();

            Backgrounds.DrawBackground(spriteBatch, 3);
            Backgrounds.DrawBackground(spriteBatch, 2);
            Backgrounds.DrawBackground(spriteBatch, 1);
            Tiling.DrawTiles(spriteBatch);
            //Backgrounds.DrawBackground(spriteBatch, 0);

            spriteBatch.End();

            base.Draw(gameTime);
        }