Discuss Scratch

sippingcider
Scratcher
500+ posts

Text/ASCII art in lists

Any tips with making ASCII art with lists in scratch? Specifically:
-how to make the art (I already know how I want it to look)
-good character to use for white space
-extra points if you know how to make the map scrollable/zoomable
I am working on a text/list based rpg game, and for the game I am wanting to make a world map with text/ASCII art. This has proved to be very difficult for me!
First I tried making the map in a word text editor and pasting the string into the list, but that doesnt work because the font scratch uses doesn't have consistent spacing of characters.

Next I tried making the map in the scratch editor by breaking up list entries like so:

add [^^^^^^^^^^^^^^^^^^^^] to [list v]
add [^^^^^^Rocky Mountains^^^] to [list v]
add [^^^^^^^^^^^^^^^^^^^^] to [list v]
but it really doesn't look good with the breaks between the entry lists.

I tried copy/pasting the entries into a single entry to get rid of the list entry breaks, but it acts really weirdly with white space so each “line” of characters doesnt line up in a single entry as it does in seperate entries.

If I could get help with drawing just a single image for a map with text that would be great. Ideally, there will also be a way to zoom in on the map and scroll around. This seems insanely difficulty with text art, but thought I would ask anyways

Thanks!

Last edited by sippingcider (Aug. 27, 2018 15:40:17)

TheUltimatum
Scratcher
1000+ posts

Text/ASCII art in lists

Basically any Japanese chars are great for ascii art because they are mostly fixed-width.
0 1 2 3 4 5 6 7 8 9
& ^ ! @ # $ % *
use the jp style spaces as well as kanji for styling

Last edited by TheUltimatum (Aug. 27, 2018 16:05:01)

sippingcider
Scratcher
500+ posts

Text/ASCII art in lists

TheUltimatum wrote:

Basically any Japanese chars are great for ascii art because they are mostly fixed-width.
0 1 2 3 4 5 6 7 8 9
& ^ ! @ # $ % *
use the jp style spaces as well as kanji for styling

Your back!

Also, thanks for the reply. I am a little confused though with the code you posted, are you saying I should use those symbols? (&,^,!,@,#,$,%,*)? And what do the numbers mean?

Second also, do you know how to type a jp style space? Google just gives me images of empty rooms in japan…
sippingcider
Scratcher
500+ posts

Text/ASCII art in lists

Bump
ge-b
Scratcher
100+ posts

Text/ASCII art in lists

sippingcider
Scratcher
500+ posts

Text/ASCII art in lists

ge-b wrote:

called an ‘ideographic space’
https://www.fileformat.info/info/unicode/char/3000/index.htm

Ohhh I found it. Thanks!

TheUltimatum wrote:

Basically any Japanese chars are great for ascii art because they are mostly fixed-width.
0 1 2 3 4 5 6 7 8 9
& ^ ! @ # $ % *
use the jp style spaces as well as kanji for styling

Also, I understand your post now. Those are examples of kanji that are all the same width! This is super helpful, thanks!!
sippingcider
Scratcher
500+ posts

Text/ASCII art in lists

So the Japanese characters are working great, but there is one issue. When I view the list art in normal screen mode it looks good, just like how it looks on my other text editors, but when I view the list art in full screen the spacing gets off by about half a space per line. Anyone know how to fix this?

nvm, fixed it by changing the size of the list window a tad bit

Last edited by sippingcider (Aug. 30, 2018 18:39:50)

Powered by DjangoBB