Exemplo n.º 1
0
  public MonstersKids() {
    super();
    // setup the resource for the starting scenes
    setStartResourceDscFiles("resources/StartUp.xml");
    setStartSceneDscFile("scenes/StartUp.xml");

    // setup the starting scene name
    setFirstSceneName("OpenScene", 2000);

    // setup the first scene name
    // setMainSceneName("MenuPuzzles01");
    setMainSceneName("MainMenu");

    // setup the scene dimensions
    setCameraWidth(1280);
    setCameraHeight(800);

    pSPM = SharedPreferenceManager.getInstance(this);

    // setup key for inAppPurchas
    this.mTheBase64EncodedPublicKey =
        new String(
            "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA0F5I7kVSNalYxpvvRpAU5/vL4"
                + "CsiWvnsLcOzq5pDKSJ4PGHh/8iaHuCUFIGpFzZlIgosXleo7uKi5CHBLVkPO3rgDtgJEZYo7O/1W5/chjz"
                + "5G5dGMVByNQj5Wp9TSp0MzGU8O94j7WFAAFfG80J/xO/hm83yG8B2nAUrqPZflVSTJQtwu5YkAhMW9AJATO1Qu"
                + "qM24fIRWWmswDNcO+0pcGe+0XhdffrcZz5ijZs549xRcNcwN2d0EhfpoZcXuKI9qlCUv4nMTjuqjtmEXizj+a+Sq0X"
                + "UuYppPqv72aFjP7OM4mTZaPRmvBIETClJWPEf9euKfAdmoYKp7sjLos4OuwIDAQAB");
  }
Exemplo n.º 2
0
 @Override
 public void doOperation(Operation msg) {
   switch (msg.type) {
     case ACTIVATE_BTN_NEXT_SCENE_LAUNCER:
       Log.i(TAG, "SET_LAUNCH_BUTTON_STATUS");
       String nextScene = NEXT_SCENE_LAUNCHER.get(msg.getParameterString(0));
       if (nextScene != null && !(nextScene.contentEquals(""))) {
         SharedPreferences sp = pSPM.getSharedPreferences(nextScene);
         // get current status of next scene button and if is Locked unlook it
         ButtonSceneLauncherDescriptor.Status currentStatus =
             ButtonSceneLauncherDescriptor.Status.valueOf(
                 sp.getString("LaunchStatus", ButtonSceneLauncherDescriptor.Status.Locked.name()));
         if (currentStatus == ButtonSceneLauncherDescriptor.Status.Locked) {
           Editor edt = sp.edit();
           edt.putString("LaunchStatus", ButtonSceneLauncherDescriptor.Status.Unlocked.name());
           edt.commit();
         }
       }
       break;
     default:
       break;
   }
   super.doOperation(msg);
 }