Search in sources :

Example 1 with NoSoundPlayer

use of net.catacombsnatch.game.sound.NoSoundPlayer 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);
}
Also used : SceneManager(net.catacombsnatch.game.scene.SceneManager) NoSoundPlayer(net.catacombsnatch.game.sound.NoSoundPlayer) LocalPlayer(net.catacombsnatch.game.player.LocalPlayer) GdxSoundPlayer(net.catacombsnatch.game.sound.GdxSoundPlayer) InputManager(net.catacombsnatch.game.event.input.InputManager) PreferenceOptions(net.catacombsnatch.game.resource.options.PreferenceOptions)

Aggregations

InputManager (net.catacombsnatch.game.event.input.InputManager)1 LocalPlayer (net.catacombsnatch.game.player.LocalPlayer)1 PreferenceOptions (net.catacombsnatch.game.resource.options.PreferenceOptions)1 SceneManager (net.catacombsnatch.game.scene.SceneManager)1 GdxSoundPlayer (net.catacombsnatch.game.sound.GdxSoundPlayer)1 NoSoundPlayer (net.catacombsnatch.game.sound.NoSoundPlayer)1