use of cn.s3bit.th902.PlatformRelatedInterfaces in project TH902 by cn-s3bit.
the class Launcher method main.
/**
* Entry point.
*/
public static void main(String[] args) {
Game game = new GameMain(new PlatformRelatedInterfaces() {
@Override
public IFont getFont(String fontName, boolean isBold, boolean isItalic, int size) {
FreetypeFont font = new FreetypeFont();
font.initialize(fontName, isBold, isItalic, size);
return font;
}
@Override
public void setFPS(int fps) {
config.foregroundFPS = fps;
}
@Override
public String[] getCommandLineParams() {
return args;
}
});
config = new LwjglApplicationConfiguration();
config.fullscreen = false;
config.width = 960;
config.height = 720;
config.resizable = false;
config.title = GameMain.GAME_TITLE;
config.foregroundFPS = 60;
config.addIcon("resources/icon32.png", FileType.Internal);
lwjglApplication = new LwjglApplication(game, config);
}
Aggregations