This repository has been archived on 2025-03-13. You can view files and clone it, but cannot push or open issues or pull requests.

27 lines
1015 B
Java
Raw Normal View History

2024-07-15 18:58:45 +02:00
package com.openeggbert.gwt;
import com.badlogic.gdx.ApplicationListener;
import com.badlogic.gdx.backends.gwt.GwtApplication;
import com.badlogic.gdx.backends.gwt.GwtApplicationConfiguration;
import com.openeggbert.OpenEggbertMainClass;
/** Launches the GWT application. */
public class GwtLauncher extends GwtApplication {
@Override
public GwtApplicationConfiguration getConfig () {
// Resizable application, uses available space in browser with no padding:
GwtApplicationConfiguration cfg = new GwtApplicationConfiguration(true);
cfg.padVertical = 0;
cfg.padHorizontal = 0;
return cfg;
// If you want a fixed size application, comment out the above resizable section,
// and uncomment below:
//return new GwtApplicationConfiguration(640, 480);
}
@Override
public ApplicationListener createApplicationListener () {
return new OpenEggbertMainClass();
}
}