Example usage for com.badlogic.gdx.math Interpolation pow5Out

List of usage examples for com.badlogic.gdx.math Interpolation pow5Out

Introduction

In this page you can find the example usage for com.badlogic.gdx.math Interpolation pow5Out.

Prototype

PowOut pow5Out

To view the source code for com.badlogic.gdx.math Interpolation pow5Out.

Click Source Link

Usage

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;/*from  w w w . ja v  a 2  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);
}