Search in sources :

Example 1 with MyFirstGame

use of com.mygdx.game.MyFirstGame in project myFirstGame by Juicebox47.

the class AndroidLauncher method onCreate.

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    AndroidApplicationConfiguration config = new AndroidApplicationConfiguration();
    initialize(new MyFirstGame(), config);
}
Also used : MyFirstGame(com.mygdx.game.MyFirstGame) AndroidApplicationConfiguration(com.badlogic.gdx.backends.android.AndroidApplicationConfiguration)

Example 2 with MyFirstGame

use of com.mygdx.game.MyFirstGame in project myFirstGame by Juicebox47.

the class DesktopLauncher method main.

public static void main(String[] arg) {
    LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
    config.width = Configuration.WIDTH;
    config.height = Configuration.HEIGHT;
    config.title = Configuration.title;
    new LwjglApplication(new MyFirstGame(), config);
}
Also used : LwjglApplication(com.badlogic.gdx.backends.lwjgl.LwjglApplication) LwjglApplicationConfiguration(com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration) MyFirstGame(com.mygdx.game.MyFirstGame)

Aggregations

MyFirstGame (com.mygdx.game.MyFirstGame)2 AndroidApplicationConfiguration (com.badlogic.gdx.backends.android.AndroidApplicationConfiguration)1 LwjglApplication (com.badlogic.gdx.backends.lwjgl.LwjglApplication)1 LwjglApplicationConfiguration (com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration)1