示例#1
0
文件: Game1.cs 项目: alex-fomin/Game
        /// <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.LightGray); //new Color(0, 80, 0));
            _spriteBatch.Begin(SpriteSortMode.Immediate, BlendState.NonPremultiplied);

            _game.DrawChanges();

            _monoControls.ForEach(ctrl => ctrl.Draw(_spriteBatch));

/*
 *          _menu.Draw(_spriteBatch);
 *
 *          _inventory.Draw(_spriteBatch);
 *
 *          _pauseSwich.Draw(_spriteBatch);
 *
 *          _knowledgeSwich.Draw(_spriteBatch);*/

            _spriteBatch.End();

            base.Draw(gameTime);
        }
示例#2
0
 // Called just before frame is rendered to allow custom drawing.
 protected void DrawSnapshot(object sender, EventArgs e)
 {
     _game.DrawChanges();
 }