All courses / C# Basics for Game Makers / Your first program
ASCII art
Challenge lesson, about 10 min, +20 XP
Dungeon of Dawn has no graphics card behind it, so the road, the chests and the monsters are drawn with letters and symbols. You can draw too. All you need is a few Console.WriteLine statements and a steady hand with the space bar.
Text art is built from rows. Each row is one statement. Because the console is monospaced, every character takes the same width, so the rows stack into a neat grid. Think of each character as one big pixel. The space character is your eraser: it is a pixel that shows nothing.
Read the rest of this lesson and run the code in your browser.
Previous: Commenting out code Next: Quiz: printing and errors