import loon.LSetting; import loon.Screen; import loon.robovm.Loon; import org.robovm.apple.foundation.NSAutoreleasePool; import org.robovm.apple.uikit.UIApplication; public class LoonTest extends Loon { @Override public void onMain() { LSetting setting = new LSetting(); setting.isFPS = true; setting.isLogo = false; setting.logoPath = "loon_logo.png"; // 原始大小 setting.width = 480; setting.height = 320; // 缩放为 setting.width_zoom = 640; setting.height_zoom = 480; setting.fps = 60; setting.fontName = "黑体"; setting.appName = "test"; setting.emulateTouch = false; register(setting, new Data() { @Override public Screen onScreen() { return new ScreenTest(); } }); } public static void main(String[] args) { try (NSAutoreleasePool pool = new NSAutoreleasePool()) { UIApplication.main(args, null, LoonTest.class); } } }