DanielOaks / boken-rpg

Fun little HTML+client-side JS RPG engine
http://danieloaks.net/boken-rpg/
ISC License
4 stars 0 forks source link

Scene parser #7

Open DanielOaks opened 6 years ago

DanielOaks commented 6 years ago

So we do need some sort of system to parse the scene markdown, let people insert variables and all.

Considering that we do allow standard markdown syntax, I'll probably use {} for the variables and insertion / flow control, rather than [] like Fen's games do.

I've got some decent prior art in this area so I'll take a look at that, and see what else around the web has worked for text-based RPG scripts. Should be fun to implement.

DanielOaks commented 6 years ago

Taking some inspiration from Liquid on this, actually. {{variable}}, {% control flow %} etc. That's the rough plan right now at least.

DanielOaks commented 6 years ago

Very initial beginnings of this in aa2c4830614ad2c3821fc4b0749578ee51c04f2a