Example #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);

            // TODO: Add your drawing code here
            //Se dibuja en pantalla todas las entidades
            spriteBatch.Begin();
            //text.DrawBackGround();
            tbVelocidadX.DrawText();
            tbVelocidadY.DrawText();
            tbAceleracionX.DrawText();
            tbAceleracionY.DrawText();
            LabelVX.DrawText();
            LabelVY.DrawText();
            LabelAX.DrawText();
            LabelAY.DrawText();
            //mousex.DrawText();
            //mousey.DrawText();
            Iniciar.DrawText();
            Reporte.DrawText();
            entity.Draw(spriteBatch);
            //spriteBatch.Draw(texturas[0], new Vector2(GraphicsDevice.Viewport.Width / 2 - texturas[0].Width / 2, GraphicsDevice.Viewport.Height / 2 - texturas[0].Height / 2), Color.White);
            //spriteBatch.Draw(texturas[1], new Vector2(GraphicsDevice.Viewport.Width / 2 - texturas[1].Width / 2 + 100, GraphicsDevice.Viewport.Height / 2 - texturas[1].Height / 2 + 80), Color.White);
            spriteBatch.End();


            base.Draw(gameTime);
        }