Esempio n. 1
0
        ///<summary>/////////////////////////////////////////////////////////////////////////////
        ////////////////////////////////////////////////////////////////////////////////////////
        ///</summary>//////////////////////////////////////////////////////////////////////////


        protected override void Draw(GameTime gameTime)
        {
            GraphicsDevice.Clear(Color.CornflowerBlue);


            if (gameState == GameState.play)
            {
                bd.Draw(spriteBatch);

                if (Global.dodge == true)
                {
                    if (Global.LV != 4)
                    {
                        octonaut.Draw(spriteBatch);
                    }
                }

                waves.Update(spriteBatch, gameTime, octonaut, Content);


                if (Global.dodge == false)
                {
                    if (Global.LV != 4)
                    {
                        octonaut.Draw(spriteBatch);
                    }
                }
            }


            //  spin.Draw(spriteBatch);

            if (gameState == GameState.play)
            {
                if (Global.LV != 4)
                {
                    UI.Draw(spriteBatch);
                }
            }


            if (gameState == GameState.titleScreen)
            {
                ts.Draw(spriteBatch);
            }

            gamePause.Draw(spriteBatch);
            lvend.Draw(spriteBatch);
            transition.Draw(spriteBatch);
            base.Draw(gameTime);
        }