Permalink
Browse files

static function main needed for neko targets

  • Loading branch information...
1 parent e91845b commit 1f575989bce66e251c8e98220ecb50630544ca94 @MattTuttle committed Jan 14, 2013
Showing with 4 additions and 0 deletions.
  1. +2 −0 examples/src/Main.hx
  2. +2 −0 template/src/{{PROJECT_CLASS}}.hx
View
@@ -17,4 +17,6 @@ class Main extends Engine
HXP.world = new effects.GameWorld();
}
+ public static function main() { new Main(); }
+
}
@@ -12,4 +12,6 @@ class {{PROJECT_CLASS}} extends Engine
// HXP.world = new YourWorld();
}
+ public static function main() { new {{PROJECT_CLASS}}(); }
+
}

0 comments on commit 1f57598

Please sign in to comment.