@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); }
@Override public void update(float deltaTime) { stateTime += deltaTime; bossStateTime += deltaTime; queue.update(deltaTime); leftTorchFire.update(deltaTime); rightTorchFire.update(deltaTime); bossAwake.update(deltaTime); }