Skip to content

Commit

Permalink
raw string literals
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacharyPatten committed Oct 28, 2023
1 parent 3aed2ca commit ecd2a60
Showing 1 changed file with 40 additions and 38 deletions.
78 changes: 40 additions & 38 deletions Projects/Tetris/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -156,24 +156,25 @@
GameStatus = GameStatus.Playing;

Console.WriteLine();
Console.WriteLine(" ██████╗█████╗██████╗█████╗ ██╗█████╗");
Console.WriteLine(" ╚═██╔═╝██╔══╝╚═██╔═╝██╔═██╗██║██╔══╝");
Console.WriteLine(" ██║ █████╗ ██║ █████╔╝██║ ███╗ ");
Console.WriteLine(" ██║ ██╔══╝ ██║ ██╔═██╗██║ ██╗");
Console.WriteLine(" ██║ █████╗ ██║ ██║ ██║██║█████║");
Console.WriteLine(" ╚═╝ ╚════╝ ╚═╝ ╚═╝ ╚═╝╚═╝╚════╝");

Console.WriteLine();
Console.WriteLine(" Controls:");
Console.WriteLine(" WASD or ARROW to move");
Console.WriteLine(" Q or E to spin left or right");
Console.WriteLine(" P to paused the game, press enter");
Console.WriteLine(" key to resume");
Console.WriteLine(" R to change Text color");
Console.WriteLine();
Console.WriteLine(" Press escape to close the game at any time.");
Console.WriteLine();
Console.Write(" Press enter to start tetris...");
Console.WriteLine("""
██████╗█████╗██████╗█████╗ ██╗█████╗
╚═██╔═╝██╔══╝╚═██╔═╝██╔═██╗██║██╔══╝
██║ █████╗ ██║ █████╔╝██║ ███╗
██║ ██╔══╝ ██║ ██╔═██╗██║ ██╗
██║ █████╗ ██║ ██║ ██║██║█████║
╚═╝ ╚════╝ ╚═╝ ╚═╝ ╚═╝╚═╝╚════╝

Controls:
WASD or ARROW to move
Q or E to spin left or right
P to paused the game, press enter
key to resume
R to change Text color

Press escape to close the game at any time.

Press enter to start tetris...
""");
Console.CursorVisible = false;
StartGame();
Console.Clear();
Expand Down Expand Up @@ -521,26 +522,27 @@ void Gameover()
SleepAfterRender();

Console.Clear();
Console.WriteLine();
Console.WriteLine(" ██████╗ █████╗ ██ ██╗█████╗");
Console.WriteLine(" ██╔════╝ ██╔══██╗███ ███║██╔══╝");
Console.WriteLine(" ██║ ███╗███████║██╔██═██║█████╗");
Console.WriteLine(" ██║ ██║██╔══██║██║ ██║██╔══╝");
Console.WriteLine(" ╚██████╔╝██║ ██║██║ ██║█████╗");
Console.WriteLine(" ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚════╝");
Console.WriteLine(" ██████╗██╗ ██╗█████╗█████╗ ");
Console.WriteLine(" ██ ██║██║ ██║██╔══╝██╔═██╗ ");
Console.WriteLine(" ██ ██║██║ ██║█████╗█████╔╝ ");
Console.WriteLine(" ██ ██║╚██╗██╔╝██╔══╝██╔═██╗ ");
Console.WriteLine(" ██████║ ╚███╔╝ █████╗██║ ██║ ");
Console.WriteLine(" ╚═════╝ ╚══╝ ╚════╝╚═╝ ╚═╝ ");

Console.WriteLine();
Console.WriteLine($" Final Score: {Score}");
Console.WriteLine($" Pause Count: {PauseCount}");
Console.WriteLine();
Console.WriteLine(" Press enter to play again");
Console.WriteLine(" Press escape to close the game");
Console.Write($"""

██████╗ █████╗ ██ ██╗█████╗
██╔════╝ ██╔══██╗███ ███║██╔══╝
██║ ███╗███████║██╔██═██║█████╗
██║ ██║██╔══██║██║ ██║██╔══╝
╚██████╔╝██║ ██║██║ ██║█████╗
╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚════╝
██████╗██╗ ██╗█████╗█████╗
██ ██║██║ ██║██╔══╝██╔═██╗
██ ██║██║ ██║█████╗█████╔╝
██ ██║╚██╗██╔╝██╔══╝██╔═██╗
██████║ ╚███╔╝ █████╗██║ ██║
╚═════╝ ╚══╝ ╚════╝╚═╝ ╚═╝

Final Score: {Score}
Pause Count: {PauseCount}

Press enter to play again
Press escape to close the game
""");
Console.CursorVisible = false;
StartGame();
RestartGame();
Expand Down

0 comments on commit ecd2a60

Please sign in to comment.