public void Draw(SpriteBatch sB, ManagerHelper mH) { if (shouldDrawScores) { DrawScores(sB, mH); } NPC commander = mH.GetNPCManager().GetCommander(myCamera.commanderType); if (commander != null) { back.Draw(sB, Vector2.Zero, null); power.Draw(sB, Vector2.Zero, null); damage.Draw(sB, Vector2.Zero, null); health.Draw(sB, Vector2.Zero, null); front.Draw(sB, Vector2.Zero, null); gun.Draw(sB, Vector2.Zero, null); toss.Draw(sB, Vector2.Zero, null); if (myCamera.GetTeammateColor() != NPC.AffliationTypes.grey) { teammate.Draw(sB, Vector2.Zero, null); } } }
/// <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); spriteBatch.Begin(); // TODO: Add your drawing code here player.Draw(spriteBatch); healthBar.Draw(spriteBatch); spriteBatch.End(); base.Draw(gameTime); }