Oregon-Trail
Oregon-Trail copied to clipboard
Automatic text wrapping
Right now for rendering a new line you must add a new element in the JSON string array.
@shiffman already suggested using the text() function where you can specify the width and height of the textbox.
I'll work on this!
@Rodak123 also related to this, do we need separate font setting for each slide, maybe it's just one font setting for the entire game in slide_data.json?
Maybe, but I'm not sure if there are any pages with different font settings.
I think there should be a default font for the entire game and then if a page can optionally override the default font.
I noticed that the text wrapping has some issues:
-
When I turned the title "Many Kinds of people made the trip to Oregon." from:
["Many kinds of people made the", "trip to Oregon."]to:
"Many kinds of people made the trip to Oregon."A new line was added:

-
When the text string length exceeds 22 characters it freaks out:
Here I split the Seien Sie... option string to an array:
