Beispiel #1
0
        /// <summary>
        /// Draw the game world, effects, and hud
        /// </summary>
        /// <param name="gameTime">The elapsed time since last Draw</param>
        public override void Draw(GameTime gameTime)
        {
            float elapsedTime = (float)gameTime.ElapsedGameTime.TotalSeconds;

            ScreenManager.SpriteBatch.Begin();

            DrawBackground(elapsedTime);

            DrawAliens();

            DrawPlayer();

            DrawBullets();

            particles.Draw();

            DrawForeground(elapsedTime);

            DrawHud();

                        #if TARGET_IPHONE_SIMULATOR
            // Draw the GamePad
            GamePad.Draw(gameTime, ScreenManager.SpriteBatch);
                        #endif

            ScreenManager.SpriteBatch.End();
        }
Beispiel #2
0
        /// <summary>
        /// Draw the game world, effects, and hud
        /// </summary>
        /// <param name="gameTime">The elapsed time since last Draw</param>
        public override void Draw(GameTime gameTime)
        {
            float elapsedTime = (float)gameTime.ElapsedGameTime.TotalSeconds;

            ScreenManager.SpriteBatch.Begin();

            DrawBackground(elapsedTime);

            DrawAliens();

            DrawPlayer();

            DrawBullets();

            particles.Draw();

            DrawForeground(elapsedTime);

            DrawHud();

            ScreenManager.SpriteBatch.End();
        }