use of net.catacombsnatch.game.event.input.InputManager in project Catacomb-Snatch by Catacomb-Snatch.
the class CatacombSnatch method create.
@Override
public void create() {
Gdx.app.setLogLevel(Application.LOG_INFO | Application.LOG_DEBUG | Application.LOG_ERROR);
if (!Art.loadResources())
Gdx.app.exit();
// Load options
options = new PreferenceOptions("catacombsnatch-options.xml");
DefaultOptions.setDefaults();
// Load sound system
try {
sound = new GdxSoundPlayer();
} catch (Exception e) {
Gdx.app.log(TAG, "Could not enable sound system, falling back to NoSound!", e);
sound = new NoSoundPlayer();
}
// Load main managers
sceneManager = new SceneManager();
input = new InputManager();
Gdx.input.setInputProcessor(input);
platform.create();
Controllers.addListener(input);
EventManager.registerListener(this);
// Dive in :)
localPlayers = new Player[4];
localPlayers[0] = new LocalPlayer();
SceneManager.switchTo(TitleScreen.class);
}
Aggregations