Пример #1
0
        public override void Draw(SpriteBatch spritebatch)
        {
            spritebatch.Begin(transformMatrix: Engine.Camera.Transform);

            _world.Draw(spritebatch);

            spritebatch.End();
        }
        /// <summary>
        /// This is called when the game should draw itself.
        /// </summary>
        /// <param name="gameTime">Provides a snapshot of timing values.</param>
        protected override void Draw(GameTime gameTime)
        {
            GraphicsDevice.Clear(Color.Black);

            // TODO: Add your drawing code here
            spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.AlphaBlend, transformMatrix: camera.Transform);

            overworld.Draw(spriteBatch);

            spriteBatch.End();

            base.Draw(gameTime);
        }