Personaje
#3
Here is the file that should be saved as "personaje.txt" in the same directory as the program:

Code: (Select All)
______x___x
______x___x_________________bbbbbbbbbbbbbbbb
______x___x________________b________________b
______x___x_______________b__bbbbbbbbbbbbbb__b
______x___x______________b__b______________b__b
______x___x______________b__b__ooo____ooo__b__b
______x___x______________b__b______________b__b
____ooxoooxo_____________b__b___o______o___b__b
___o__x___x_ooo__________b__b_oo_o____o_oo_b__b
oooo__x___x____o_________b__b______________b__b
o______________o_________b__b______________b__b
o______________o_________b__b_____o__o_____b__b
_o____________o_________b__b_______oo_______b__b
_o____________o________b__b__________________b__b
_o___________o_________b__b____r________r_____b_b
_o__________o__________b_bb_____rrrrrrrr_____o_bbb
__o_________o_________bbb__o________________o____o
__o_________o______ooo______o______________o______oo
__o_________o___ooo__________oooooooooooooo_________ooo
___o________o_oo_______________________________________o
____o_______oo__________________________________________o
____o_______o___________________________________________o
____o_______o___________________________________________o
____o_______o___________________________________________o
---
_____________oooooooooooooooooooooooooooooooo
___________oo________________________________o____r
________ooo___bb______________________________o____r
_____ooo_______________________________________or_r
____o__________________________________________o_r
____ooo________________________________________o
_______o_____________________________________oo
________oo__________________________________o
__________o________________________________o
___________ooooo___oooooo_________ooo___ooo
_______________o___o_____ooooooooo__o___o
_______________o___o________________o___o
_______________o___o________________o___o
_______________o_o_o________________o_o_o
_______________o___o________________o___o
---
___________oooooooooooooooooo
___________o________________o
___________o________________o
xx_________o___________b____o
xx_________o_________bbb____o
xx_________o______bbb__b____o
xx_________o___bbb_____b____o
xx_________o_bb________b____o
xx_________o_b_________b____o
xx_________o_b_________b____o
xx_________o_bbb_______bbb__o
xx_________o_bbbb______bbbb_o
xx_________o__bbb_______bbb_o
xxxxxxxxxxxo________________o
___________o________________o
___________o________________o
___________oooooooooooooooooo
---
_________________oooo
_____________oooo____oo
__________ooo__________oo
_______ooo_______________o
_____oo_________r_________o
____o_________rr___________o
___o_________r___________oo
__o__________________oooo
_o_________________oo
o________________oo_
o______________oo_xxxxxxxx
o_____________oxxxxxxxxxxxx
_o_____________o___xxxxxxx
_o______________oo
__o_______________ooo
___oo________________ooo
_____o__________________oo
______oo__________________o
________o_______________oo
_________oo___________oo
___________oo_______oo
_____________ooooooo
---
____________xxxxxxxxxx
__________xxxxxxxxbbxxx
________xxxxxxxxxxxxxxxxxx
_______xxxxxxxxxxxxxoooxxxx
___xxxxxxxxxxxxxxxoooxx
_xxxxxxxxxxxxxxxxooxx
xxxxxxxxxxxxxxxxxxxx
___xxxxxxxxx_xxxxx
____xxxxxxx___xx
____xxxxx____xxxxx
____xxxx_____xxxxxx
____xxx_____xxxx_xx
____xxx____xxxxx__x
_____xx__xxxxx_x____xxxx
_____xx__xxx_______xxxx
______xx_x________xxxx
______xxx_x_______xxxx
_______xxxxxx____xxxx
________xxxxxxxxxxxx
___________xxxxxx
---

I'm sorry about the underscores. They are needed to properly align stuff. There are a few websites sharing ASCII art that make do with spaces and tabs in front of lines. The web browsers especially Firefox don't seem to handle them well. More than likely they are stripped, ruining the pictures. Even worse tabs could be found within seen glyphs and deleted as well. I was forced to fix a couple of them while I was testing this program. I didn't provide them because I don't want to be summoned for copyright questions. The pictures I show here are my own. Except the last one where I tried to copy the dolphin I found in another topic here.

Lynx text-mode browser can't handle the ASCII art blocks well if they are graphics containers. The lines of the art have to be "listed".

The pictures aren't conventional ASCII art, the letters are actually colored pixels for some other program I wrote. The first picture actually serves as my avatar somewhere else. Smile

Note that each picture is allowed to exist as is, but has to be separated from one another with the three dashes on a line by itself and not decorated by anything else.

This other text file has the quotations. Save as "personajq.txt" in the same directory as the executable and the above text file:

Code: (Select All)
Hello I am a QB64 programmer. But I'm not a good one!
I don't have to know any mathematics to know how to program!
The weather is clear away from the terminal, isn't it?
Quick, tell me how to pronounce "mnrvovrfc".
Look here, at the boring terminal that isn't a lot different from MS-DOS.
How do you draw a real pig anyhow?
Tell me how to reach Albuquerque. Do not tell me to take a left turn!
Hey I wonder when the green-named moderator returns to us, I miss his jokes, I laughed at every single one of them.
This is a demonstration of a program that was written hastily but was supposed to produce some laughter.
Only if the graphics were done with GIMP or one of those payware fancy programs, I could get your attention better. We must compromise, because the author of this program isn't patient enough and also isn't a good artist.

What is starting with "only" and ending with "artist" is supposed to be a single line. I could have made that last line even longer, to better test how big the balloon could be drawn LOL.

One of you could test the program further by providing "say" parameter to the user program. Then the program asks what the personality (picked at random by the computer) should say. Otherwise write it with a word processor or text editor and save it as "personaje1.txt" in the same directory as this program being showcased. Then at the prompt in this program just enter a "c" (small-case with no double-quotation marks). Otherwise on Windows this program could be changed so it also accepts text copied from the clipboard.

If you create a text-file picture, name it whatever you want but save it in the same directory as the program, because this program doesn't invoke an open file requester. Then the parameter at the command line could be "pers" to have it say something from the original quotes file, or "both" to also have it say something else that is provided on demand.
Reply


Messages In This Thread
Personaje - by mnrvovrfc - 01-20-2023, 04:24 PM
RE: Personaje - by bplus - 01-20-2023, 05:44 PM
RE: Personaje - by mnrvovrfc - 01-20-2023, 08:36 PM
RE: Personaje - by bplus - 01-20-2023, 09:41 PM
RE: Personaje - by mnrvovrfc - 01-20-2023, 09:56 PM
RE: Personaje - by bplus - 01-20-2023, 10:54 PM
RE: Personaje - by mnrvovrfc - 01-21-2023, 12:27 PM
RE: Personaje - by mnrvovrfc - 01-21-2023, 02:27 PM
RE: Personaje - by mnrvovrfc - 01-22-2023, 07:55 PM
RE: Personaje - by mnrvovrfc - 01-22-2023, 10:01 PM
RE: Personaje - by SMcNeill - 01-23-2023, 07:21 PM
RE: Personaje - by mnrvovrfc - 01-23-2023, 09:06 PM
RE: Personaje - by bplus - 01-24-2023, 01:33 AM
RE: Personaje - by bplus - 01-24-2023, 02:42 AM
RE: Personaje - by bplus - 01-24-2023, 03:28 AM
RE: Personaje - by bplus - 01-25-2023, 01:20 PM
RE: Personaje - by bplus - 01-25-2023, 01:31 PM
RE: Personaje - by mnrvovrfc - 01-25-2023, 02:32 PM
RE: Personaje - by bplus - 01-25-2023, 03:24 PM
RE: Personaje - by mnrvovrfc - 01-25-2023, 04:26 PM
RE: Personaje - by bplus - 01-25-2023, 04:34 PM
RE: Personaje - by mnrvovrfc - 01-25-2023, 08:04 PM
RE: Personaje - by bplus - 01-26-2023, 05:31 PM
RE: Personaje - by mnrvovrfc - 01-29-2023, 03:33 AM
RE: Personaje - by mnrvovrfc - 01-30-2023, 09:50 AM



Users browsing this thread: 13 Guest(s)