List of usage examples for com.badlogic.gdx Application LOG_DEBUG
int LOG_DEBUG
To view the source code for com.badlogic.gdx Application LOG_DEBUG.
Click Source Link
From source file:com.github.fauu.helix.editor.EditorDesktopLauncher.java
License:Open Source License
public static void main(String[] arg) { LwjglApplicationConfiguration config = new LwjglApplicationConfiguration(); config.title = "helix"; config.width = 1280;/*from www .j ava 2s . c om*/ config.height = 800; new LwjglApplication(new HelixEditor(), config); Gdx.app.setLogLevel(Application.LOG_DEBUG); }
From source file:com.LibGdxUtils.java
License:Open Source License
@Override public void create() { try {/* w w w .j a va 2 s . c o m*/ logger.setLevel(Logger.DEBUG); Gdx.app.setLogLevel(Application.LOG_DEBUG); Texture.setAssetManager(Assets.manager); spriteBatch = new SpriteBatch(); modelBatch = new ModelBatch(); game.create(); } catch (Exception e) { logger.error(e.getMessage(), e); Gdx.app.exit(); } }
From source file:com.mangecailloux.pebble.screens.ScreenManager.java
License:Apache License
@Override protected void onDebug(boolean _debug) { if (Gdx.app != null) { if (_debug) Gdx.app.setLogLevel(Application.LOG_DEBUG); else/*from w ww. j a v a 2 s . c om*/ Gdx.app.setLogLevel(Application.LOG_ERROR); } }
From source file:com.maplescot.loggerbill.LoggerBillGame.java
License:Creative Commons License
@Override public void create() { Gdx.app.setLogLevel(Application.LOG_DEBUG); ProfileManager.init();//from ww w . j a v a 2s . c o m Assets.getInstance().splashScreen = new SplashScreen(this); setScreen(Assets.getInstance().splashScreen); }
From source file:com.mrandmrsjian.freakingsum.DirectedGame.java
License:Apache License
@Override public void create() { // Set Libgdx log level Gdx.app.setLogLevel(Application.LOG_DEBUG); // Load assets Assets.instance.init(new AssetManager()); screenWidth = 480;// w w w. j av a2 s.co m screenHeight = 480 * Gdx.graphics.getHeight() / Gdx.graphics.getWidth(); Gdx.app.debug(TAG, "w=" + screenWidth + ", h=" + screenHeight); camera = new OrthographicCamera(); camera.position.set(screenWidth / 2, screenHeight / 2, 0); viewport = new FitViewport(screenWidth, screenHeight, camera); soundEnabled = loadSoundStatus(); soundVolume = loadSoundVolume(); prepareLeaderBoard(); switch (Gdx.app.getType()) { case Android: isAndroid = true; Gdx.app.setLogLevel(Application.LOG_ERROR); break; case Desktop: Gdx.app.setLogLevel(Application.LOG_DEBUG); // desktop specific code break; case WebGL: // HTML5 specific code break; case iOS: break; default: // Other platforms specific code } // Start game at menu screen ScreenTransition transition = ScreenTransitionSlice.init(2, ScreenTransitionSlice.UP_DOWN, 10, Interpolation.pow5Out); setScreen(new MenuScreen(this), transition); }
From source file:com.mygdx.game.GdxDemo3D.java
License:Apache License
@Override public void create() { Gdx.app.setLogLevel(Application.LOG_DEBUG); getAssetManager().getLogger().setLevel(Logger.DEBUG); Screen currentScreen = new LoadingGameScreen(this, new GameScreen(this)); setScreen(currentScreen);// www .j a v a2 s . c o m }
From source file:com.ntr.prototype.NTRPrototypeMain.java
@Override public void create() { //set log level to debug Gdx.app.setLogLevel(Application.LOG_DEBUG); Assets.instance.init(new AssetManager()); //initialisasi controller dan renderer worldController = new WorldController(); worldRenderer = new WorldRenderer(worldController); }
From source file:com.packtpub.libgdx.canyonbunny.CanyonBunnyMain.java
License:Apache License
@Override public void create() { // Set Libgdx log level Gdx.app.setLogLevel(Application.LOG_DEBUG); // Load assets Assets.instance.init(new AssetManager()); // Start game at menu screen setScreen(new MenuScreen(this)); }
From source file:com.pixelscientists.gdx.LibgdxUtils.java
License:Open Source License
@Override public void create() { try {//from w w w .j a v a2s .c o m logger.setLevel(Logger.DEBUG); Gdx.app.setLogLevel(Application.LOG_DEBUG); Texture.setAssetManager(assets); spriteBatch = new SpriteBatch(); modelBatch = new ModelBatch(); game.create(); } catch (Exception e) { logger.error(e.getMessage(), e); Gdx.app.exit(); } }
From source file:com.vlaaad.dice.DiceHeroes.java
License:Open Source License
@Override public void create() { Gdx.app.setLogLevel(Application.LOG_DEBUG); Gdx.input.setCatchBackKey(true);/*from ww w. j a v a2s .com*/ Gdx.input.setCatchMenuKey(true); Config.clearRegions(); Config.shapeRenderer = new ShapeRenderer(); Config.assetManager = new AssetManager(); Config.preferences = new DicePreferences(Gdx.app.getPreferences("com.vlaaad.dice.preferences"), this); Tutorial.killAll(); setState(new IntroState(new IntroState.Callback() { @Override public void onEnded() { setScale(Config.preferences.getScale()); setState(new LoadGameResourcesState(new LoadGameResourcesState.Callback() { @Override public void onResourcesLoaded() { start(); } })); } })); }