From d6b042f2a485260eda24c74f712acd4f515d238f Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Fri, 16 Feb 2024 23:57:17 -0300 Subject: [PATCH] Drop useless Main file --- compile-common.hxml | 2 +- src/Game.hx | 4 ++++ src/Main.hx | 5 ----- 3 files changed, 5 insertions(+), 6 deletions(-) delete mode 100644 src/Main.hx 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(); - } -}