Compare commits
2 Commits
021aac9914
...
010aa5323d
Author | SHA1 | Date |
---|---|---|
3wc | 010aa5323d | |
3wc | dd9fc47787 |
25
README.md
25
README.md
|
@ -2,10 +2,31 @@
|
||||||
|
|
||||||
## Development
|
## Development
|
||||||
|
|
||||||
|
### Requirements
|
||||||
|
|
||||||
|
* `haxe`
|
||||||
|
* `haxelib`
|
||||||
|
* Haxelib dependencies; run `haxelib install compile-hl.hxml`
|
||||||
|
* `automake`
|
||||||
|
|
||||||
### Compiling
|
### Compiling
|
||||||
|
|
||||||
`haxe compile.hxml`
|
`make debug`
|
||||||
|
|
||||||
|
You can alternatively run `make watch` to automatically rebuild on changes to
|
||||||
|
`.hx` files.
|
||||||
|
|
||||||
### Running
|
### 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/
|
||||||
|
```
|
||||||
|
|
5
makefile
5
makefile
|
@ -1,4 +1,4 @@
|
||||||
.PHONY: watch
|
.PHONY: watch run
|
||||||
|
|
||||||
default: bin/rewild.hl
|
default: bin/rewild.hl
|
||||||
|
|
||||||
|
@ -18,3 +18,6 @@ clean:
|
||||||
|
|
||||||
watch:
|
watch:
|
||||||
@inotifywait --recursive --monitor --event modify,move,create,delete --include '.*.hx$$' ./ | while read changed; do echo $$changed; make debug; done
|
@inotifywait --recursive --monitor --event modify,move,create,delete --include '.*.hx$$' ./ | while read changed; do echo $$changed; make debug; done
|
||||||
|
|
||||||
|
run:
|
||||||
|
hl bin/rewild.hl
|
||||||
|
|
|
@ -81,7 +81,6 @@ class Game extends hxd.App {
|
||||||
hxd.Res.text.intro.entry.name,
|
hxd.Res.text.intro.entry.name,
|
||||||
];
|
];
|
||||||
dialogueManager.load(yarnText, yarnFileNames);
|
dialogueManager.load(yarnText, yarnFileNames);
|
||||||
dialogueManager.runNode("Intro");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function new() {
|
public function new() {
|
||||||
|
|
|
@ -42,6 +42,8 @@ class WorldMapScene extends h2d.Flow implements GameScene implements h2d.domkit.
|
||||||
layers.set(ld.name, l);
|
layers.set(ld.name, l);
|
||||||
rebuildLayer(ld.name);
|
rebuildLayer(ld.name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Game.current.dialogueManager.runNode("Intro");
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getH2dObject() {
|
public function getH2dObject() {
|
||||||
|
|
Loading…
Reference in New Issue