Add template

This commit is contained in:
oakes
2014-01-18 20:15:29 -05:00
parent 6bfbdce2c7
commit f5860b976b
17 changed files with 337 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
package {{package}};
import clojure.lang.RT;
import clojure.lang.Symbol;
import com.badlogic.gdx.backends.android.AndroidApplication;
import com.badlogic.gdx.Game;
public class {{android-class-name}} extends AndroidApplication {
public void onCreate (android.os.Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
RT.var("clojure.core", "require").invoke(Symbol.intern("{{namespace}}"));
try {
Game game = (Game) RT.var("{{namespace}}", "{{app-name}}").deref();
initialize(game, true);
} catch (Exception e) {
e.printStackTrace();
}
}
}