Пример #1
0
        /// <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.CornflowerBlue);

            screenController.BeginNative(spriteBatch);

            //
            // TODO: Add your drawing code here
            //

            Vector2 pos = new Vector2();

            for (int i = 0; i < characters.Length; i++)
            {
                spriteBatch.DrawString(debugFont, characters[i].ToString(), pos, Color.White);
                pos.Y += 100;
            }

            screenController.EndNative(spriteBatch);

            base.Draw(gameTime);
        }