package BluebellAdventures.CreateScenes;

import java.io.IOException;

import Megumin.Nodes.Director;
import Megumin.Nodes.Layer;
import Megumin.Nodes.Scene;
import Megumin.Nodes.Sprite;

public class CreateLoadingScene {
    public static Scene createLoadingScene(String backgroundImage) throws IOException {
        //init sprite
        Sprite background = new Sprite(backgroundImage);

        //init layer
        Layer mapLayer = new Layer();
        mapLayer.addSprite(background);

        //init scene
        Scene loading = new Scene();
        loading.setName("loading");
        loading.addLayer(mapLayer);

        return loading;
    }
}
@@ -418,19 +418,26 @@
   Layer 
-map
+background
 Layer = 
@@ -457,19 +457,26 @@
         
-map
+background
 Layer.ad
@@ -620,11 +620,18 @@
 yer(
-map
+background
 Laye
@@ -666,8 +666,9 @@
 %0A    %7D%0A%7D
+%0A

change a variable name