reorganizing demo/examples

This commit is contained in:
2020-10-04 14:02:15 -06:00
parent 9dc1b60937
commit 281ef742bb
7 changed files with 7 additions and 12 deletions

4
demo.hxml Normal file
View File

@@ -0,0 +1,4 @@
-lib hiss
-cp src
-main hank.StoryTellerDemo
--interp

View File

@@ -1,4 +0,0 @@
-lib hiss
-cp src
-main hank.Demo
--interp

View File

@@ -4,14 +4,14 @@ import hiss.HissReader;
import hiss.HissTools;
import hiss.StaticFiles;
class Demo implements StoryTeller {
class StoryTellerDemo implements StoryTeller {
public static function main() {
StaticFiles.compileWithAll("examples");
var examples = sys.FileSystem.readDirectory("src/hank/examples");
var demo = new Demo();
var demo = new StoryTellerDemo();
demo.handleChoices(examples, (index) -> {
new Story("examples/" + examples[index], demo).run();
new Story("examples/" + examples[index] + "/main.hank", demo).run();
});
}

View File

@@ -1,5 +0,0 @@
// Example of what a Hank file looks like AFTER being read into Hiss form!
(load "extra.hank")
(divert )