public override void Draw(SpriteBatch spriteBatch) { _graphicsDevice.Clear(m_color); spriteBatch.Begin(transformMatrix: Game1.m_scaleMatrix); // Draw sprites here int textleft = 0; int textright = 0; for (int i = 0; i < m_HighscoreCount; i++) { if (i < 5) { renderpositionx = 200; spriteBatch.DrawString(m_spritefont, i.ToString() + ")" + m_highscorefile.m_playerScores[i].name + ":" + m_highscorefile.m_playerScores[i].scorevalue, new Vector2(renderpositionx, 60 + textleft * 30), Color.White); textleft += 1; } else { renderpositionx = 400; spriteBatch.DrawString(m_spritefont, i.ToString() + ")" + m_highscorefile.m_playerScores[i].name + ":" + m_highscorefile.m_playerScores[i].scorevalue, new Vector2(renderpositionx, 60 + textright * 30), Color.White); textright += 1; } } m_backButton.Draw(spriteBatch); spriteBatch.End(); }
public override void Draw(SpriteBatch spriteBatch) { _graphicsDevice.Clear(Color.Black); spriteBatch.Begin(transformMatrix: Game1.m_scaleMatrix); // Draw sprites here /* * for (int i = 0; i < touchcollection.Count; i++) * { * spriteBatch.DrawString(font, "Tapping point:" + touchcollection[i].Position.ToString(), new Vector2(0, 0 + i * 20), Color.White); * * } */ m_titlescreen.Draw(spriteBatch); m_PlayButton.Draw(spriteBatch); m_HighscoreButton.Draw(spriteBatch); m_CreditButton.Draw(spriteBatch); spriteBatch.End(); }
public override void Draw(SpriteBatch spriteBatch) { _graphicsDevice.Clear(m_color); spriteBatch.Begin(transformMatrix: Game1.m_scaleMatrix); // Draw sprites here m_backButton.Draw(spriteBatch); m_creditcolourlerp.Draw(spriteBatch); //spriteBatch.DrawString(font, "Created by Anthony Bogli", new Vector2(200, 200), Color.White); //spriteBatch.DrawString(font, "Github: https://github.com/monarchshield", new Vector2(200, 220), Color.White); //spriteBatch.DrawString(font, "Website: https://anthonybogli.com", new Vector2(200, 240), Color.White); spriteBatch.End(); }