Exemplo n.º 1
0
 @Override
 public void complete(Stage o, Stage n) {
   super.complete(o, n);
   _shadow.close();
   n.players.setDepth(0);
   _toflip.players.setBatch(null);
 }
Exemplo n.º 2
0
  @Override
  public void init(Stage o, Stage n) {
    super.init(o, n);
    n.players.setDepth(_close ? 1 : -1);
    _toflip = _close ? n : o;
    _batch = new RotationYBatch(LSystem.base().graphics().gl, 0f, 0.5f, 1.5f);
    _toflip.players.setBatch(_batch);
    final float fwidth = _toflip.width(), fheight = _toflip.height();
    _shadow =
        new Player() {
          @Override
          protected void paintImpl(GLEx g) {
            g.setAlpha(_alpha).setFillColor(0xFF000000).fillRect(0, 0, fwidth / 4, fheight);
          }

          @Override
          public void update(long elapsedTime) {}
        };
    _toflip.players.addAt(_shadow, fwidth, 0);
    updateAngle(0);
  }