mbkarle / mind-the-fog

Roguelike JavaScript game--mind the fog!
2 stars 1 forks source link

Rework Dialogues.json #122

Closed akarle closed 6 years ago

akarle commented 6 years ago

As part of the effort to convert to the new text module (#120), I want to rework dialogues.json to be a little more complictated for the sake of organization.

Now

It is an object of arrays:

{
    "dialogID": [panel1, panel2, finalpanel]
...
}

Proposal

Rework to be an object of object arrays:

{
    "CharacterID": {
        "dialogID": [panel1, panel2, final]
    }
}