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

            // DEPENDING ON WHICH BOOLEAN IS TRUE, IT DRAWS!

            spriteBatch.Begin();
            if (gamestate.Loading_Screen == true)
            {
                Loading_and_Menu.The_Loading_Screen(graphics, All_Textures, spriteBatch, gamestate);
            }

            if (gamestate.Main_Game == true)
            {
                spriteBatch.Draw(All_Textures.day_time_background, Vector2.Zero, Color.White);
                spriteBatch.DrawString(All_Textures.Arial_12, "Back to menu", new Vector2(700, 10), Color.Black);
                Monument.DrawAllMonumenten(spriteBatch, All_Textures.Arial_12, Monumentenlijst);
            }

            if (gamestate.Main_Menu == true)
            {
                Main_Menu_Screen.Draw_The_Menu(graphics, All_Textures, spriteBatch);
            }


            spriteBatch.End();


            base.Draw(gameTime);
        }