diff --git a/text_horror/app.js b/text_horror/app.js index 01d2e9d..786a5a9 100644 --- a/text_horror/app.js +++ b/text_horror/app.js @@ -9,13 +9,13 @@ var keys; var allowNextDlg = true; function load() { - fetch("text_horror/dialogue.json") + fetch("text_horror/dialogue.json") //Load json file here .then(Response => Response.json()) .then(data => { dlgFile = data; - changeDlg("start"); - skipDlg = true; - nextDlg(false); + changeDlg("start"); //Set "start" key from dialogue.json + skipDlg = true; //Allow skipping to next dialogue + nextDlg(false); //Skip to first }); }