public void Draw(SpriteBatch spriteBatch) { spriteBatch.Begin(); spriteBatch.Draw(mBackground, new Rectangle(0, 0, mScreenWidth, mScreenHeight), Color.Azure); spriteBatch.DrawString(mFont, "Insgesamt gekaufte Tiere : ", new Vector2(50, 100), Color.Black); mAnimalsBought.Draw(spriteBatch); spriteBatch.DrawString(mFont, "Höste Anzahl gleichzeitig lebender Tiere : ", new Vector2(50, 200), Color.Black); mAnimalsMax.Draw(spriteBatch); spriteBatch.DrawString(mFont, "Insgesamte Ingame time in Sekunden : ", new Vector2(50, 300), Color.Black); mGametime.Draw(spriteBatch); spriteBatch.DrawString(mFont, "Maximale Anzahl Gold : ", new Vector2(50, 400), Color.Black); mMaxGold.Draw(spriteBatch); spriteBatch.DrawString(mFont, "Insgesamt getötete Zombies : ", new Vector2(50, 500), Color.Black); mZombiesKilled.Draw(spriteBatch); spriteBatch.DrawString(mFont, "Gewonenne Spiele : ", new Vector2(50, 600), Color.Black); mWon.Draw(spriteBatch); spriteBatch.DrawString(mFont, "Verlorene Spiele : ", new Vector2(50, 700), Color.Black); mLost.Draw(spriteBatch); spriteBatch.DrawString(mFont, "Maximale Punkte : ", new Vector2(50, 800), Color.Black); mPoints.Draw(spriteBatch); spriteBatch.Draw(mHighScoreTexture, new Rectangle(850, 130, 200, 200), Color.AliceBlue); spriteBatch.DrawString(mFont, Game1.sStatistics.mHighScore1.ToString(), new Vector2(880, 205), Color.Black); spriteBatch.DrawString(mFont, Game1.sStatistics.mHighScore2.ToString(), new Vector2(880, 250), Color.Black); spriteBatch.DrawString(mFont, Game1.sStatistics.mHighScore3.ToString(), new Vector2(880, 295), Color.Black); spriteBatch.End(); }
public void Draw(SpriteBatch spriteBatch) { if (!HudVisible) { return; } mCoin = mCoinSpin.GetTexture(); spriteBatch.Begin(SpriteSortMode.Deferred, null, SamplerState.PointClamp, null, null, null, null); spriteBatch.Draw(mHealth, new Vector2(15, 0), Color.AliceBlue); spriteBatch.Draw(mCoin, new Vector2(156, 0), Color.AliceBlue); spriteBatch.Draw(mSeed1, new Vector2(297, 0), Color.AliceBlue); spriteBatch.Draw(mSeed2, new Vector2(438, 0), Color.AliceBlue); spriteBatch.Draw(mSeed3, new Vector2(579, 0), Color.AliceBlue); mLiveBox.Draw(spriteBatch); mMoneyBox.Draw(spriteBatch); mSeedBox1.Draw(spriteBatch); mSeedBox2.Draw(spriteBatch); mSeedBox3.Draw(spriteBatch); if (mShowPoints) { mPoints.Draw(spriteBatch); } if (mShowTime) { mTime.Draw(spriteBatch); } if (mShowFps) { mFps.Draw(spriteBatch); } spriteBatch.End(); }
public void Draw(SpriteBatch spriteBatch) { spriteBatch.Begin(); spriteBatch.Draw(mBackground, new Rectangle(0, 0, mScreenWidth, mScreenHeight), Color.Azure); spriteBatch.DrawString(mFont, "Erstegeburt : ", new Vector2(mErsteGeburt.mBackRect.X - 300, mErsteGeburt.mBackRect.Y), Color.Black); if (Game1.sAchievements.ErsteGeburt) { mErsteGeburt.ChangeText("Done!"); } mErsteGeburt.Draw(spriteBatch); spriteBatch.DrawString(mFont, "Wahrer Farmer : ", new Vector2(mWahrerFarmer.mBackRect.X - 300, mWahrerFarmer.mBackRect.Y), Color.Black); if (Game1.sAchievements.WahrerFarmer) { mWahrerFarmer.ChangeText("Done!"); } mWahrerFarmer.Draw(spriteBatch); spriteBatch.DrawString(mFont, "Farming Simulator : ", new Vector2(mFarmingSimulator.mBackRect.X - 300, mFarmingSimulator.mBackRect.Y), Color.Black); if (Game1.sAchievements.FarmingSimulator) { mFarmingSimulator.ChangeText("Done!"); } mFarmingSimulator.Draw(spriteBatch); spriteBatch.DrawString(mFont, "Der Anfang vom Ende : ", new Vector2(mDerAnfangVomEnde.mBackRect.X - 300, mDerAnfangVomEnde.mBackRect.Y), Color.Black); if (Game1.sAchievements.DerAnfangVomEnde) { mDerAnfangVomEnde.ChangeText("Done!"); } mDerAnfangVomEnde.Draw(spriteBatch); spriteBatch.DrawString(mFont, "Vom Gejagten zum Jäger : ", new Vector2(mVomGejagtenZumJäger.mBackRect.X - 300, mVomGejagtenZumJäger.mBackRect.Y), Color.Black); if (Game1.sAchievements.VomGejagtenZumJäger) { mVomGejagtenZumJäger.ChangeText("Done!"); } mVomGejagtenZumJäger.Draw(spriteBatch); spriteBatch.DrawString(mFont, "Gehirnlos : ", new Vector2(mGehirnlos.mBackRect.X - 300, mGehirnlos.mBackRect.Y), Color.Black); if (Game1.sAchievements.Gehirnlos) { mGehirnlos.ChangeText("Done!"); } mGehirnlos.Draw(spriteBatch); spriteBatch.DrawString(mFont, "Obdachlos : ", new Vector2(mObdachlos.mBackRect.X - 300, mObdachlos.mBackRect.Y), Color.Black); if (Game1.sAchievements.Obdachlos) { mObdachlos.ChangeText("Done!"); } mObdachlos.Draw(spriteBatch); spriteBatch.DrawString(mFont, "Das war erst der Anfang : ", new Vector2(mDasWarErstDerAnfang.mBackRect.X - 300, mDasWarErstDerAnfang.mBackRect.Y), Color.Black); if (Game1.sAchievements.DasWarErstDerAnfang) { mDasWarErstDerAnfang.ChangeText("Done!"); } mDasWarErstDerAnfang.Draw(spriteBatch); spriteBatch.DrawString(mFont, "Die lange Nacht : ", new Vector2(mDieLangeNacht.mBackRect.X - 300, mDieLangeNacht.mBackRect.Y), Color.Black); if (Game1.sAchievements.DieLangeNacht) { mDieLangeNacht.ChangeText("Done!"); } mDieLangeNacht.Draw(spriteBatch); spriteBatch.DrawString(mFont, "Der Apokalypse ist vorbei! : ", new Vector2(mDieApokalypseIstVorbei.mBackRect.X - 300, mDieApokalypseIstVorbei.mBackRect.Y), Color.Black); if (Game1.sAchievements.DieApokalypseIstVorbei) { mDieApokalypseIstVorbei.ChangeText("Done!"); } mDieApokalypseIstVorbei.Draw(spriteBatch); spriteBatch.DrawString(mFont, "Sie hatten keine Chance! : ", new Vector2(mSieHattenKeineChance.mBackRect.X - 300, mSieHattenKeineChance.mBackRect.Y), Color.Black); if (Game1.sAchievements.SieHattenKeineChance) { mSieHattenKeineChance.ChangeText("Done!"); } mSieHattenKeineChance.Draw(spriteBatch); spriteBatch.End(); }