From c031d4139913548acba5d7b9fe69c0dac87166f2 Mon Sep 17 00:00:00 2001 From: Yannik <80621863+vaporvee@users.noreply.github.com> Date: Fri, 26 May 2023 17:42:28 +0200 Subject: [PATCH] improved json file --- text_horror/app.js | 2 +- text_horror/dialogue.json | 12 +++++------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/text_horror/app.js b/text_horror/app.js index 7387d74..c6643a3 100644 --- a/text_horror/app.js +++ b/text_horror/app.js @@ -9,7 +9,7 @@ function load() { .then(Response => Response.json()) .then(data => { dlgFile = data; - dlgLines = dlgFile[""]; + dlgLines = dlgFile; typeWriter(); }) } diff --git a/text_horror/dialogue.json b/text_horror/dialogue.json index 1fc9053..8bf071a 100644 --- a/text_horror/dialogue.json +++ b/text_horror/dialogue.json @@ -1,7 +1,5 @@ -{ - "": [ - "Hello welcome to TextHorror!", - "This is the second line", - "Aand a third line" - ] -} \ No newline at end of file +[ + "Hello welcome to TextHorror!", + "This is the second line", + "Aand a third line" +] \ No newline at end of file