chore(scene/transition): change debug to trace logging
Becasue that's mostly tracing :L
This commit is contained in:
@ -38,13 +38,13 @@ public class Transition extends Scene {
|
|||||||
public void render(SpriteBatch batch) {
|
public void render(SpriteBatch batch) {
|
||||||
var toOpacity = ((float) (System.currentTimeMillis() - startTime)) / duration;
|
var toOpacity = ((float) (System.currentTimeMillis() - startTime)) / duration;
|
||||||
if (toOpacity >= 0.99) {
|
if (toOpacity >= 0.99) {
|
||||||
log.debug("Transition complete to state: {}", targetState);
|
log.trace("Transition complete to state: {}", targetState);
|
||||||
Game.state = targetState;
|
Game.state = targetState;
|
||||||
Game.transition = null;
|
Game.transition = null;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var fromOpacity = 1 - toOpacity;
|
var fromOpacity = 1 - toOpacity;
|
||||||
log.debug("Transition opacities - from: {}, to: {}", fromOpacity, toOpacity);
|
log.trace("Transition opacities - from: {}, to: {}", fromOpacity, toOpacity);
|
||||||
batch.setColor(1, 1, 1, fromOpacity);
|
batch.setColor(1, 1, 1, fromOpacity);
|
||||||
from.render(batch);
|
from.render(batch);
|
||||||
batch.setColor(1, 1, 1, toOpacity);
|
batch.setColor(1, 1, 1, toOpacity);
|
||||||
|
|||||||
Reference in New Issue
Block a user