Example usage for com.badlogic.gdx.backends.android AndroidFiles AndroidFiles

List of usage examples for com.badlogic.gdx.backends.android AndroidFiles AndroidFiles

Introduction

In this page you can find the example usage for com.badlogic.gdx.backends.android AndroidFiles AndroidFiles.

Prototype

public AndroidFiles(AssetManager assets) 

Source Link

Usage

From source file:com.ridiculousRPG.GameLauncher.java

License:Apache License

/**
 * AUTOMATICALLY CALLED BY ANDROID<br>
 * The game engine is able to start any game by an Android activity.<br>
 * You don't need an other Android-activity inside your game.
 * /*from  w ww .  j  av a  2s . c o  m*/
 * @param savedInstanceState
 */
@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    GameOptions options = new GameOptionsDefaultConfigReader(
            new AndroidFiles(getAssets()).internal(OPTIONS_FILE).file()).options;
    options.fullscreen = true;
    setTitle(buildTitle(options.title, options.debug));
    initialize(new GameBase(options) {
        @Override
        public boolean shareGLContext() {
            return false;
        }
    }, options.useGL20);
}