chore(scene): make the default constructor wait for all assets

This commit is contained in:
2025-09-30 08:05:20 +07:00
parent 8c0d9b26bf
commit ec1d2a672c

View File

@ -1,8 +1,15 @@
package org.vibecoders.moongazer.scenes;
import org.vibecoders.moongazer.managers.Assets;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
public abstract class Scene {
public Scene() {
if (!Assets.isLoadedAll()) {
Assets.waitUntilLoaded();
}
}
public abstract void render(SpriteBatch batch);
public void dispose() {
// Default implementation does nothing