コード例 #1
0
 @Override
 public void loop() {
   if (estadoSprite == 0) {
     long intervalo = System.currentTimeMillis() - inicio;
     if (nonoBepi.fadeEnded() && intervalo > 4000) {
       estadoSprite = 1;
       nonoBepi.fadeOut(1000);
     }
   } else {
     if (nonoBepi.fadeEnded()) {
       vrGameManager.setCurrentScene(1);
     }
   }
 }
コード例 #2
0
  @Override
  public void init() {
    setSceneBackgroundColor(1f, 1f, 1f);
    nonoBepi = createSprite(R.drawable.nono, 1, 1);
    nonoBepi.fadeIn(1000);
    inicio = System.currentTimeMillis();

    nonoBepi.vrPosition.fX = AGScreenManager.iScreenWidth / 2;
    nonoBepi.vrPosition.fY = AGScreenManager.iScreenHeight / 2;

    nonoBepi.setScreenPercent(60, 40);

    Som.somIntro();
  }