package com.badlogic.gdx.ingenuity.desktop.test;

import com.badlogic.gdx.Application;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.backends.lwjgl.LwjglApplication;
import com.badlogic.gdx.backends.lwjgl.LwjglApplicationConfiguration;
import com.badlogic.gdx.ingenuity.GdxData;
import com.badlogic.gdx.ingenuity.extend.DesktopCoreHelper;
import com.badlogic.gdx.ingenuity.test.GdxGame;
import com.badlogic.gdx.ingenuity.utils.FnAssetManager;

public class DesktopLauncher {

	private static final int WIDTH = 1280;
	private static final int HEIGHT = 720;
	private static final float SCALE = 1.02f;

	public static void main(String[] arg) {
		// 初始化运行环境
		GdxData.getInstance().initRuntime(new DesktopCoreHelper());

		FnAssetManager.enableAssetMonitorLog = true;// 桌面版开启资源监控日志
		LwjglApplicationConfiguration config = new LwjglApplicationConfiguration();
		config.width = Math.round(WIDTH / SCALE);
		config.height = Math.round(HEIGHT / SCALE);
		config.y = 0;
		config.resizable = false;
		config.vSyncEnabled = true;// 垂直同步
		config.samples = 8;// 抗锯齿
		new LwjglApplication(new GdxGame(), config);
		Gdx.app.setLogLevel(Application.LOG_DEBUG);
	}
}

@@ -240,111 +240,8 @@
 on;%0A
-import com.badlogic.gdx.ingenuity.GdxData;%0Aimport com.badlogic.gdx.ingenuity.extend.DesktopCoreHelper;%0A
 impo
@@ -542,84 +542,8 @@
 ) %7B%0A
-%09%09// %E5%88%9D%E5%A7%8B%E5%8C%96%E8%BF%90%E8%A1%8C%E7%8E%AF%E5%A2%83%0A%09%09GdxData.getInstance().initRuntime(new DesktopCoreHelper());%0A%0A
 %09%09Fn

update desktop/src/com/badlogic/gdx/ingenuity/desktop/test/DesktopLauncher.java