reorganizing demo/examples
This commit is contained in:
4
demo.hxml
Normal file
4
demo.hxml
Normal file
@@ -0,0 +1,4 @@
|
||||
-lib hiss
|
||||
-cp src
|
||||
-main hank.StoryTellerDemo
|
||||
--interp
|
||||
@@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
// Example of what a Hank file looks like AFTER being read into Hiss form!
|
||||
|
||||
(load "extra.hank")
|
||||
|
||||
(divert )
|
||||
Reference in New Issue
Block a user