Triple X ASCII art

found this printing method on google :slight_smile:

1 Like

LOL It’s almost there

Simple one line ASCII for a break before PlayGame() starts.

this is mine
image

Almost skipped this bit because I couldn’t figure out why \ was causing errors but it was satisfying to find a solution!

The answer I utilized is in other posts, but in case you find mine first: just add another \ directly in front. So it will look like \ but will only print . Here’s an example from the “Space Zoo” font section of my code, I think it’s the easiest to see what I mean:

    std::cout << " ESCAPE FROM\n";
    std::cout << " ___  ____   __    ___  ____    ____  _____  _____ \n";
    std::cout << "/ __)(  _ \\ /__\\  / __)( ___)  (_   )(  _  )(  _  )\n";
    std::cout << "\\__ \\ )___//(__)\\( (__  )__)    / /_  )(_)(  )(_)( \n";
    std::cout << "(___/(__) (__)(__)\\___)(____)  (____)(_____)(_____)\n\n\n";

If there’s an easier way PLEASE for the love of gawd let us all know haha!

DANG I wish I’d seen your post! I tried to do something very close to this method at first but was getting errors so I panicked and did it the longer way haha. Nice!

A Wizard!

It didn’t like me using \ so I settled for N

2 Likes
    std::cout << R"( 
                     `. ___
                    __,' __`.                _..----....____
        __...--.'``;.   ,.   ;``--..__     .'    ,-._    _.-'
  _..-''-------'   `'   `'   `'     O ``-''._   (,;') _,'
,'________________                          \`-._`-','
 `._              ```````````------...___   '-.._'-:
    ```--.._      ,.     SPACE           ````--...__\-.
            `.--. `-`     ZOO               ____    |  |`
              `. `.   INDUSTRIES          ,'`````.  ;  ;`
                `._`.        __________   `.      \'__/`
                   `-:._____/______/___/____`.     \  `
                               |       `._    `.    \
                               `._________`-.   `.   `.___
                                                  `------'` )" << std::endl;
    
    std::cout << "\n\nYou managed to break into the shuttle bay and escaped Space Zoo Station!\n\n" 
            "Do you have any idea how to fly this?\n"
            "Or, for that matter, where in the galaxy you are?\n\n\n";    
    return 0;

Ok very excited about this. Found the above alternative to writing "std::cout << " each individual line in a post from @DARK1, thank you! Not only is this so quick and simple to implement, it resolves the \ character errors. Aswesome :+1:

My original effort here, for reference, which has extra \ for every , was super annoying and time consuming, and looks like chaos:


        std::cout << "          .-''''-.        .-''''-. \n";
        std::cout << "         /         \\     /        \\ \n";
        std::cout << "        /_         _\\   /_        _\\ \n";
        std::cout << "        // \\      / \\  // \\      / \\ \n";
        std::cout << "        |\\__\\    /__/| |\\__\\    /__/| \n";
        std::cout << "         \\    ||    /   \\    ||    / \n";
        std::cout << "          \\        /     \\        / \n";
        std::cout << "           \\  __  /       \\  __  / \n";
        std::cout << "   .-''''-. '.__.'.-''''-. '.__.'.-''''-. \n";
        std::cout << "  /        \\ |  |/        \\ |  |/        \\ \n";
        std::cout << " /_        _\\|  /_        _\\|  /_        _\\ \n";
        std::cout << "// \\      / \\  // \\      / \\  // \\      / \\ \n";
        std::cout << "|\\__\\    /__/| |\\__\\    /__/| |\\__\\    /__/| \n";
        std::cout << " \\    ||    /   \\    ||    /   \\    ||    / \n";
        std::cout << "  \\        /     \\        /     \\        / \n";
        std::cout << "   \\  __  /       \\  __  /       \\  __  / \n";
        std::cout << "    '.__.'         '.__.'         '.__.' \n";
        std::cout << "     |  |           |  |           |  | \n";
        std::cout << "     |  |           |  |           |  | \n\n\n";

I’ll link a screen shot of how that art outputs, since it’s a little tough to read in the code. ascii_aliens

4 Likes

Glad i helped :ok_hand: :v:

1 Like

ASCII art is difficult, but fun. This could be a headline for my title screen for Super Fluffy!

The first attachment is the code, the 2nd is what it looks like when it’s run. This was challenging but fun. I had a puppy image that I tried to convert over but I couldn’t get it to look right and wanted to get moving on the project.

My spend time for this challenge :slight_smile:

This is the ascii art of my game :

Code:

void PrintIntroduction()
{
    // Print welcome messages to the terminal
    std::cout << "You are a programmer trying to defeat an A.I. that has become evil!\n"; 

    std::cout << R"(
 _______________________________
/   __________________   |      \ 
|  /                  \  |       |
| |      _________     | |       |_
| |     / _\   /_ \    | |       | \
| |    / /  \ /  \ \   | |       |  |
| |    \ \__/ \__/ /   | |       |  |
| |     \   / \   /    | |       |  |
| |     |        |     | |       |  |
| |     |_||__||_|     | |       |_/
| |                    | |       |
|  \__________________/  | | | | |
\________________________/______/  
         |_____________|         
      ___/             \____    
     /______________________\    
    )" << '\n';

    std::cout << "You need to enter the correct codes to disable its systems...\n\n"; 
}
1 Like

here is my triplex ascii
I strayed a little in that I used an asset file to grab and stream on the screen.

void PrintInto(void)

{

std::string TextLine;

std::ifstream infile(“billy.txt”);

while (infile >> TextLine)

{

    std::cout << TextLine << "\n";

}

std::cout   << "its time to play a game... I like games... \n";

std::cout   << "you must enter the correct code or else. \n";

}

1 Like


So I tried to do the ASCII art but for some reason the / and \ that are read don’t show up when I complie my code. I cant figure out how to get them to stop being red.

1 Like

How did you created that art?! That’s super cool!

Wow, you all guys have super amazing ASCII art. Please, share how did you do it.

I saw that some got it from https://www.asciiart.eu/
I got mine from there too.

Here is a screenshoot.
Screenshot 2020-11-27 195010

Hope you like it! \^o^/

1 Like

place before each \ symbol - another \ symbol

Here’s mine

void PrintIntro()
{       // R - raw string literals
        std::cout << R"( 
        #######################################
        #                                     #
        #               WELCOME!              #
        #                                     #
        #         DO YOU WANT TO PLAY?        #
        #                                     #
        #                                     #
        #                                     #
        #######################################
        )" << std::endl;
}


I just used a simple pistol ASCII to give a sort of dangerous vibe.

Privacy & Terms