/// <summary> /// This is called when the game should draw itself. /// </summary> /// <param name="gameTime">Provides a snapshot of timing values.</param> public override void Draw(SpriteBatch spriteBatch) { // TODO: Add your drawing code here spriteBatch.Draw(background, backgroundRect, Color.White); mainMenuButton.Draw(spriteBatch); if (displayLoading == true) { spriteBatch.Draw(loadingImg, loadingRect, Color.White); } }
public override void Draw(SpriteBatch spriteBatch) { spriteBatch.Draw(backgroundImage, backgroundRect, Color.White); //levelOneButton.Draw(spriteBatch); levelTwoButton.Draw(spriteBatch); //levelThreeButton.Draw(spriteBatch); //levelFourButton.Draw(spriteBatch); //levelFiveButton.Draw(spriteBatch); if (displayLoading == true) { spriteBatch.Draw(loadingImg, loadingRect, Color.White); } //spriteBatch.Draw(Aimg, new Rectangle(50,100, 50,50), Color.White); spriteBatch.Draw(Bimg, new Rectangle(400, 100, 50, 50), Color.White); //spriteBatch.Draw(Ximg, new Rectangle(50, 350, 50, 50), Color.White); //spriteBatch.Draw(Yimg, new Rectangle(400, 350, 50, 50), Color.White); //spriteBatch.Draw(startImage, startRect, Color.White); }
public override void Draw(SpriteBatch spriteBatch) { videotexture = videoplayer.GetTexture(); // TODO: Add your drawing code here spriteBatch.Draw(background, backgroundRect, Color.White); spriteBatch.Draw(videotexture, videotexturerect, Color.White); if (videoplayer.State == MediaState.Stopped) { // spriteBatch.DrawString(font, "HOLD CONTINUE", new Vector2(0, 0), Color.White); continueButton.Draw(spriteBatch); } if (displayLoading == true) { spriteBatch.Draw(loadingImg, loadingRect, Color.White); } }