optimized displaying

This commit is contained in:
Baipyrus 2022-05-21 22:53:45 +02:00
parent ee580128a5
commit 4aa8cbce76

View File

@ -116,8 +116,8 @@ namespace FlappyBird {
// Update the display based on changes between the 'board' and 'copy'
Console.SetCursorPosition(scoreText.Length, 0);
Console.Write(score);
for (int i = 1; i < board.GetLength(0)-1; i++)
for (int j = 1; j < board.GetLength(1)-1; j++) {
for (int j = 1; j < board.GetLength(1)-1; j++)
for (int i = 1; i < board.GetLength(0)-1; i++) {
char bC = board[i, j];
if (bC != copy[i, j]) {
Console.SetCursorPosition(i*2, j+1);