public static void ShowHighScores() { Engine.ClearScreen(); showControls = true; do { Console.BackgroundColor = ConsoleColor.DarkBlue; Console.ForegroundColor = ConsoleColor.Red; Console.SetCursorPosition(0, 0); Engine.ClearScreen(); for (int i = 0; i < highScoresNames.Length; i++) { Console.SetCursorPosition(30, 10 + i); Console.WriteLine($"{i + 1} {highScoresNames[i]} {highScoresNumbers[i]} \n\n"); } BlockAnimation(); Thread.Sleep(50); showControls = Engine.EscapeNotPressed(); } while (showControls); // to prevent draw bug keypress Engine.GlitchFix(); }
public static void ShowCredits() { Engine.ClearScreen(); Console.ForegroundColor = (ConsoleColor)random.Next(9, 15); showCredits = true; do { Engine.ClearScreen(); PrintName(); Animation(); Thread.Sleep(50); showCredits = Engine.EscapeNotPressed(); } while (showCredits); Engine.GlitchFix(); }