chore(scene): move log creation to base scene class
This commit is contained in:
@ -2,8 +2,6 @@ package org.vibecoders.moongazer.scenes;
|
||||
|
||||
import static org.vibecoders.moongazer.Constants.*;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.vibecoders.moongazer.Game;
|
||||
import org.vibecoders.moongazer.State;
|
||||
import org.vibecoders.moongazer.managers.Assets;
|
||||
@ -20,7 +18,6 @@ public class Intro extends Scene {
|
||||
private Texture logo;
|
||||
private long startTime;
|
||||
private long endTime = 0;
|
||||
private static final Logger log = LoggerFactory.getLogger(Intro.class);
|
||||
|
||||
/**
|
||||
* Initializes the intro scene, starts loading assets.
|
||||
|
||||
@ -1,10 +1,12 @@
|
||||
package org.vibecoders.moongazer.scenes;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.vibecoders.moongazer.managers.Assets;
|
||||
|
||||
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
|
||||
|
||||
public abstract class Scene {
|
||||
protected final Logger log = org.slf4j.LoggerFactory.getLogger(getClass());
|
||||
public Scene() {
|
||||
if (!Assets.isLoadedAll()) {
|
||||
Assets.waitUntilLoaded();
|
||||
|
||||
@ -1,6 +1,5 @@
|
||||
package org.vibecoders.moongazer.scenes;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.vibecoders.moongazer.Game;
|
||||
import org.vibecoders.moongazer.State;
|
||||
|
||||
@ -16,8 +15,6 @@ public class Transition extends Scene {
|
||||
private long startTime;
|
||||
private long duration;
|
||||
|
||||
private static final Logger log = org.slf4j.LoggerFactory.getLogger(Transition.class);
|
||||
|
||||
/**
|
||||
* Creates a new transition between two scenes.
|
||||
* @param from The scene to transition from.
|
||||
|
||||
Reference in New Issue
Block a user