Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I easily represent a raw block of text as a string?

I created a very simple console program that mimics GLaDOS's song from the end of the game, Portal, with the audio and the words all working fine. I ran into a problem when trying to draw the logo at the end.

Is there a way to set a block of text as it is shown into a string so I may write it to the console? I know that '\n' is a newline but I want to be able to write this out easier.

This is what I have at the moment:

Console.Clear();
TypeText("thank you for participating in the Aperture Science Experiments/nPress any button for delicious cake/n
             .,-:;//;:=,
          . :H@@@MM@M#H/.,+%;,
       ,/X+ +M@@M@MM%=,-%HMMM@X/,
     -+@MM; $M@@MH+-,;XMMMM@MMMM@+-
    ;@M@@M- XM@X;. -+XXXXXHHH@M@M#@/.
  ,%MM@@MH ,@%=             .---=-=:=,.
  =@#@@@MX.,                -%HX$$%%%:;
 =-./@M@M$                   .;@MMMM@MM:
 X@/ -$MM/                    . +MM@@@M$
,@M@H: :@:                    . =X#@@@@-
,@@@MMX, .                    /H- ;@M@M=
.H@@@@M@+,                    %MM+..%#$.
 /MMMM@MMH/.                  XM@MH; =;
  /%+%$XHH@$=              , .H@@@@MX,
   .=--------.           -%H.,@@@@@MX,
   .%MM@@@HHHXX$$$%+- .:$MMX =M@@MM%.
     =XMMM@MM@MM#H;,-+HMM@M+ /MMMX=
       =%@M@M#@$-.=$@MM@@@M; %M%=
         ,:+$+-,/H#MMMMMMM@= =,
               =++%%%%+/:-.", 90);
like image 631
yeahBlitz Avatar asked Dec 07 '22 21:12

yeahBlitz


1 Answers

Use a verbatim literal string by prefixing with an "@".

like image 113
Mark Brackett Avatar answered Mar 24 '23 06:03

Mark Brackett