Compare commits

...

2 Commits

Author SHA1 Message Date
3wc 010aa5323d Only launch dialogue when world map shown 2024-02-14 12:33:05 -03:00
3wc dd9fc47787 README and makefile improvements 2024-02-14 12:32:45 -03:00
4 changed files with 29 additions and 4 deletions

View File

@ -2,10 +2,31 @@
## Development
### Requirements
* `haxe`
* `haxelib`
* Haxelib dependencies; run `haxelib install compile-hl.hxml`
* `automake`
### Compiling
`haxe compile.hxml`
`make debug`
You can alternatively run `make watch` to automatically rebuild on changes to
`.hx` files.
### Running
`hl rewild.hl`
`make run`
### Making a release
**TODO**: Making a redistributable `hl` version
#### Web
```
make bin/rewild.js
abra app cp <domain> bin/rewild.js app:/usr/share/nginx/html/bin/
```

View File

@ -1,4 +1,4 @@
.PHONY: watch
.PHONY: watch run
default: bin/rewild.hl
@ -18,3 +18,6 @@ clean:
watch:
@inotifywait --recursive --monitor --event modify,move,create,delete --include '.*.hx$$' ./ | while read changed; do echo $$changed; make debug; done
run:
hl bin/rewild.hl

View File

@ -81,7 +81,6 @@ class Game extends hxd.App {
hxd.Res.text.intro.entry.name,
];
dialogueManager.load(yarnText, yarnFileNames);
dialogueManager.runNode("Intro");
}
public function new() {

View File

@ -42,6 +42,8 @@ class WorldMapScene extends h2d.Flow implements GameScene implements h2d.domkit.
layers.set(ld.name, l);
rebuildLayer(ld.name);
}
Game.current.dialogueManager.runNode("Intro");
}
public function getH2dObject() {