Esempio n. 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.Black);

            // TODO: Add your drawing code here

            //Draw ball.
            m_bv.DrawSimulation(m_bs.Ball, gameTime.ElapsedGameTime.Milliseconds);

            base.Draw(gameTime);
        }
Esempio n. 2
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.White);

            // TODO: Add your drawing code here

            //Draw ball.
            m_bv.DrawSimulation(m_bs.Balls, gameTime.ElapsedGameTime.Milliseconds, spriteBatch, m_camera);
            m_gameCon.DrawEffects(spriteBatch, m_camera);

            base.Draw(gameTime);
        }