Ejemplo n.º 1
0
  private void initState() {
    ShopItemUnlocker.createUnlockedShopItemsMap();

    State.setPlayerName(NAME);
    State.setCoins(COINS);
    State.setHighscore(SCORE);
    State.setSoundtrackVolume(SOUNDTRACK_VOLUME);
    State.setSoundEffectVolume(SOUNDEFFECT_VOLUME);

    ShopItemUnlocker.setUnlockedShopItem("Iron Man", true);
    ShopItemUnlocker.setUnlockedShopItem("Plank", true);
    ShopItemUnlocker.setUnlockedShopItem("Mario", true);
    CurrentItems.setSkin(ShopItemLoader.loadSkinsToList().get(1));
    CurrentItems.setSoundtrack(ShopItemLoader.loadSoundtracksToList().get(1));
    State.setSoundtrackEnabled(false);
    State.setSoundEffectsEnabled(false);
  }