added first commands

This commit is contained in:
2023-05-30 12:58:10 +02:00
parent b9b68475b1
commit 22b9a22119

View File

@@ -9,13 +9,13 @@ var keys;
var allowNextDlg = true; var allowNextDlg = true;
function load() { function load() {
fetch("text_horror/dialogue.json") fetch("text_horror/dialogue.json") //Load json file here
.then(Response => Response.json()) .then(Response => Response.json())
.then(data => { .then(data => {
dlgFile = data; dlgFile = data;
changeDlg("start"); changeDlg("start"); //Set "start" key from dialogue.json
skipDlg = true; skipDlg = true; //Allow skipping to next dialogue
nextDlg(false); nextDlg(false); //Skip to first
}); });
} }