Ejemplo n.º 1
0
  @Override
  public void render(ShapeRenderer shapes, SpriteBatch batch) {

    bossSleeps.render(batch);
    renderBossEyes(batch);
    bossSleepsGlow.render(batch);

    bossAngryGlow.render(batch);
    bossAngryGlowAdd.render(batch);
    bossAwake.render(batch);
    bossSleepsRoots.render(batch);

    renderShrine(shapes, batch);

    door_back.render(batch);
    leftTorch.render(batch);
    rightTorch.render(batch);

    BatchUtils.setBlendFuncAdd(batch);

    leftTorchFire.setTint(shrineGlowAlpha);
    leftTorchFire.render(batch);
    leftTorchGlow.setTint((shrineGlowAlpha) * (doorLightScale - (float) Math.random() * 0.1f));
    leftTorchGlow.render(batch);

    rightTorchFire.setTint(shrineGlowAlpha);
    rightTorchFire.render(batch);
    rightTorchGlow.setTint((shrineGlowAlpha) * (doorLightScale - (float) Math.random() * 0.1f));
    rightTorchGlow.render(batch);
    BatchUtils.setBlendFuncNormal(batch);
  }
Ejemplo n.º 2
0
  private void renderDoorLight(SpriteBatch batch) {
    BatchUtils.setBlendFuncAdd(batch);
    Sprite s = Assets.openingDoorLight;
    s.setColor(1, 1, 1, 1);
    s.setScale(1, doorLightScale);
    Utils.drawCenter(batch, s, -114f, (s.getHeight() / 2 - 28) * doorLightScale);

    float tint = ((float) Math.sin(stateTime * 2) + 1) / 2 * 0.5f + 0.0f;
    tint *= doorLightScale;
    s.setColor(tint, tint, tint, 1);
    Utils.drawCenter(batch, s, -114f, (s.getHeight() / 2 - 28) * doorLightScale);
    BatchUtils.setBlendFuncNormal(batch);
  }