public override void Draw(GameTime gameTime) { spriteBatch.Begin(SpriteSortMode.BackToFront, BlendState.AlphaBlend, null, null, null, null, cam.Transform); // spriteBatch.Begin(); spriteBatch.Draw(gradientTexture, new Rectangle(0, 0, 1280, 720), Color.White); virusBar.Draw(spriteBatch); immunityBar.Draw(spriteBatch); if (displayRewards) { if (swordRewarded) { spriteBatch.Draw(rightSword, rightSwordBounds, null, Color.White, rightRotationAngle, new Vector2(rightSword.Width / 2, rightSword.Height / 2), SpriteEffects.None, 0f); spriteBatch.Draw(leftSword, leftSwordBounds, null, Color.White, rightRotationAngle, new Vector2(leftSword.Width / 2, leftSword.Height / 2), SpriteEffects.None, 0f); } if (shieldRewarded) { for (int i = 0; i <= shields.Length - 1; i++) { spriteBatch.Draw(shields[i], shieldBounds[i], Color.White); } } levelPassed.Draw(spriteBatch); } if (flag == true) { button.Draw(spriteBatch); hand.Draw(spriteBatch); } spriteBatch.End(); base.Draw(gameTime); }
public override void Draw(GameTime gameTime) { spriteBatch.Begin(); background.Draw(spriteBatch); dumbbell.Draw(spriteBatch); treadmill.Draw(spriteBatch); Hand.Draw(spriteBatch); spriteBatch.End(); base.Draw(gameTime); }
public override void Draw(GameTime gameTime) { spriteBatch.Begin(); spriteBatch.Draw(backgroundImage, graphics.Viewport.Bounds, Color.White); spriteBatch.DrawString(font, drawnScores, new Vector2(screenWidth / 1.8f, screenHeight / 6f), Color.White); spriteBatch.DrawString(font, drawnNames, new Vector2(screenWidth / 2.7f, screenHeight / 6f), Color.White); okButton.Draw(spriteBatch); hand.Draw(spriteBatch); spriteBatch.End(); base.Draw(gameTime); }
public override void Draw(GameTime gameTime) { SpriteBatch spriteBatch = this.ScreenManager.SpriteBatch; spriteBatch.Begin(); spriteBatch.Draw(backgroundImage, Vector2.Zero, Color.White); spriteBatch.DrawString(spriteFont, TextToDraw, textPosition, Color.White); OkButton.Draw(spriteBatch); Hand.Draw(spriteBatch); spriteBatch.End(); base.Draw(gameTime); }
public override void Draw(GameTime gameTime) { spriteBatch.Begin(); spriteBatch.Draw(gradientTexture, new Rectangle(0, 0, 1280, 720), Color.White); if (!(gesture.Equals(""))) { spriteBatch.DrawString(font, "gesture recognized: " + gesture, new Vector2(500, 500), Color.Orange); } spriteBatch.DrawString(font2, textToDraw, textPosition, Color.White); button.Draw(spriteBatch); hand.Draw(spriteBatch); spriteBatch.End(); base.Draw(gameTime); }
public override void Draw(Microsoft.Xna.Framework.GameTime gameTime) { spriteBatch.Begin(); spriteBatch.Draw(background, Vector2.Zero, Color.White); spriteBatch.DrawString(font, message, new Vector2(550, 75), Color.Black); spriteBatch.DrawString(font, message2, new Vector2(50, 175), Color.Black); spriteBatch.Draw(leftArrow, new Vector2(screenWidth / 2f - 20, screenHeight / 2f), Color.White); spriteBatch.Draw(rightArrow, new Vector2(screenWidth / 2f - 20 + currentAvatar.Width, screenHeight / 2f), Color.White); spriteBatch.Draw(currentAvatar, avatarPosition, null, Color.White, 0, new Vector2(currentAvatar.Width, currentAvatar.Height), 1f, SpriteEffects.None, 0); hand.Draw(spriteBatch); button.Draw(spriteBatch); spriteBatch.End(); base.Draw(gameTime); }
public override void Draw(GameTime gameTime) { spriteBatch.Begin(); menu.Draw(spriteBatch); newGame.Draw(spriteBatch); instructions.Draw(spriteBatch); highscores.Draw(spriteBatch); exit.Draw(spriteBatch); Hand.Draw(spriteBatch); newGameLabel.Draw(spriteBatch); instructionsLabel.Draw(spriteBatch); scoresLabel.Draw(spriteBatch); exitLabel.Draw(spriteBatch); spriteBatch.End(); base.Draw(gameTime); }
public override void Draw(GameTime gameTime) { SpriteBatch spriteBatch = ScreenManager.SpriteBatch; spriteBatch.Begin(); spriteBatch.Draw(backgroundImage, new Rectangle(0, 0, ScreenManager.GraphicsDevice.Viewport.Width, ScreenManager.GraphicsDevice.Viewport.Height), Color.White); nextButton.Draw(spriteBatch); if (saveAvailable) { saveButton.Draw(spriteBatch); } hand.Draw(spriteBatch); spriteBatch.End(); base.Draw(gameTime); }
public override void Draw(GameTime gameTime) { SpriteBatch spriteBatch = ScreenManager.SpriteBatch; spriteBatch.Begin(); spriteBatch.Draw(backgroundImage, Vector2.Zero, Color.White); foreach (Button b in buttons) { b.Draw(spriteBatch); } spriteBatch.DrawString(font, text, new Vector2(290, 35), Color.White); spriteBatch.DrawString(font, textBox, new Vector2(ScreenManager.GraphicsDevice.Viewport.Width / 2 - 200, 220), Color.White); hand.Draw(spriteBatch); spriteBatch.End(); base.Draw(gameTime); }