Skip to content

Instantly share code, notes, and snippets.

@TaizWeb
Created March 6, 2020 23:39
Show Gist options
  • Save TaizWeb/8a4ec99098bc86229c721d209e830980 to your computer and use it in GitHub Desktop.
Save TaizWeb/8a4ec99098bc86229c721d209e830980 to your computer and use it in GitHub Desktop.
A short dialog sample for testgame_v2
[MM]
This is where I get off kid.
I'm supposed to speak a bit?
Each line is a box of dialog.
[MC]
And the box up top?
[MM]
It tells the program who's speaking.
The idea is that we split it by \n
Then we loop through
If it's a [], we load the portrait
If not, and the line ain't empty
We load the text into the box!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment