optimized displaying
This commit is contained in:
parent
ee580128a5
commit
4aa8cbce76
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user