public LevelHUD(Level pLevel) : base("hud.png", 1, 4) { _level = pLevel; _game = pLevel.thisgame; drawer = new Drawer(1024, 100); AddChild(drawer); game.Remove(this); game.Add(this); }
private void drawHighScores() { //Highscores HighScores high = new HighScores(); Drawer drawer = new Drawer(300, 768); AddChild(drawer); drawer.SetXY(650, 140); Font font = new Font("Minecraft", 25, FontStyle.Regular); Brush brush = new SolidBrush(Color.LimeGreen); string[] highscores = high.ReturnHighScore(0); for (int i = 0; i < highscores.Length; i++) { PointF pos = new PointF(0, 500 - i * 40); drawer.graphics.DrawString(highscores[i], font, brush, pos); } }