Esempio n. 1
0
        public void Draw(GameTime gameTime, SpriteBatch spriteBatch)
        {
            // TODO: Add your drawing code here
            Game1.GAME.IsMouseVisible = false;

            // Start drawing
            spriteBatch.Begin();
            spriteBatch.Draw(BG, new Rectangle(0, 0, 800, 480), Color.White);
            spriteBatch.End();
            player.Draw(spriteBatch);
            if (soundTrack != null)
            {
                soundTrack.Draw(spriteBatch);
            }
            foreach (Item iT in item)
            {
                iT.Draw(spriteBatch);
            }

            foreach (Rock r in rocks)
            {
                r.Draw(spriteBatch);
            }

            foreach (Entity e in entities)
            {
                e.Draw(gameTime, spriteBatch);
            }

            //Transition Screen
            if (WaveOver)
            {
                transition.Draw(gameTime, spriteBatch);
            }
        }