diff --git a/compile-common.hxml b/compile-common.hxml index 027a9bf..fca59f1 100644 --- a/compile-common.hxml +++ b/compile-common.hxml @@ -3,5 +3,5 @@ -lib heaps:git:https://github.com/HeapsIO/heaps.git -lib tiledhx -lib hxyarn --main Main +-main Game -lib domkit diff --git a/src/Game.hx b/src/Game.hx index 6e5055e..aeb9478 100644 --- a/src/Game.hx +++ b/src/Game.hx @@ -196,4 +196,8 @@ class Game extends hxd.App { root.scene = gs; style.addObject(gs.getH2dObject()); } + + static function main() { + new Game(); + } } diff --git a/src/Main.hx b/src/Main.hx deleted file mode 100644 index 09941e3..0000000 --- a/src/Main.hx +++ /dev/null @@ -1,5 +0,0 @@ -class Main { - static function main() { - new Game(); - } -}