From 281891c7956989afea66c52042bd0f3ec8f6b4d5 Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Fri, 9 Mar 2018 08:27:26 -0500 Subject: [PATCH] Worked on json format for world layout and some dialog stuff --- dialog.js | 18 +++++++++++ feast.js | 1 - world.js | 94 ++++++++++++++++++++++++++++++++++++++++++++----------- 3 files changed, 93 insertions(+), 20 deletions(-) create mode 100644 dialog.js diff --git a/dialog.js b/dialog.js new file mode 100644 index 0000000..12850e9 --- /dev/null +++ b/dialog.js @@ -0,0 +1,18 @@ +"use strict"; + +function DialogNode { + this.text = "Foo bar baz."; + this.hooks = []; + + this.visit = function() { + for (let i=0; i