List of usage examples for com.badlogic.gdx Application LOG_INFO
int LOG_INFO
To view the source code for com.badlogic.gdx Application LOG_INFO.
Click Source Link
From source file:com.agateau.utils.log.GdxPrinter.java
License:Apache License
@Override public void print(int level, String tag, String message) { tag = mPrefix + tag;/*from w w w. j a v a2s .co m*/ if (level == Application.LOG_DEBUG) { Gdx.app.debug(tag, message); } else if (level == Application.LOG_INFO) { Gdx.app.log(tag, message); } else { // LOG_ERROR Gdx.app.error(tag, message); } }
From source file:com.agateau.utils.log.NLog.java
License:Apache License
public static void i(Object obj, Object... args) { print(Application.LOG_INFO, obj, args); }
From source file:nl.littlebluefrog.ld34.LD34.java
License:Apache License
@Override public void create() { Gdx.app.setLogLevel(Application.LOG_INFO); tiledCam = new OrthographicCamera(); int worldWidth = Gdx.graphics.getWidth(); int worldHeight = Gdx.graphics.getHeight(); Gdx.app.debug(TAG, "world size = " + worldWidth + "x" + worldHeight); hudCam = new OrthographicCamera(); hudCam.setToOrtho(false, worldWidth, worldHeight); mStage = new Stage(new ExtendViewport(worldWidth, worldHeight, hudCam)); mGameOver = new GameOver(); mGameOver.setPosition(worldWidth / 2 - 150, worldHeight / 2 - 100); mGameOver.setVisible(false);/*from www . j a v a 2s. co m*/ mBattleReport = new BattleReport(); mBattleReport.setPosition(worldWidth / 2 - 150, worldHeight / 2 - 100); mBattleReport.setVisible(false); mRewardReport = new RewardReport(); mRewardReport.setPosition(0, 0); mRewardReport.setVisible(false); mGamelogic = new GameLogicController(this); mGamelogic.newGame(); mPlayer = new Player(mGamelogic); mPlayer.setPosition(tiledCam.viewportWidth / 2, tiledCam.viewportHeight / 2 - TILE_WIDTH * 2); mPlayerStats = new PlayerStats(mGamelogic); mPlayerStats.setPosition(new Vector2(0, worldHeight)); mStepStats = new StepStats(mGamelogic); mStepStats.setPosition(0, worldHeight - 168); Button buttonLeft = mGamelogic.getLeftButton(); buttonLeft.setPosition(mPlayer.getX() - (TILE_WIDTH * 2) - 8, mPlayer.getY() - (TILE_WIDTH * 1.5f)); Button buttonRight = mGamelogic.getRightButton(); buttonRight.setPosition(mPlayer.getX() + (TILE_WIDTH * 2) - 8, mPlayer.getY() - (TILE_WIDTH * 1.5f)); mStage.addActor(mRewardReport); mStage.addActor(mPlayer); mStage.addActor(mBattleReport); mStage.addActor(mPlayerStats); mStage.addActor(mStepStats); mStage.addActor(buttonLeft); mStage.addActor(buttonRight); mStage.addActor(mGameOver); mInputHandler = new InputHandler(mGamelogic, mStage); mStage.act(); }