/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.game.runner.scene;

import org.andengine.entity.primitive.Rectangle;
import org.game.runner.GameActivity;
import org.game.runner.base.BaseScrollMenuScene;
import org.game.runner.manager.SceneManager;
import org.game.runner.manager.SceneManager.SceneType;

/**
 *
 * @author Karl
 */
public class LevelChoiceScene extends BaseScrollMenuScene{
    public LevelChoiceScene(){
        super(GameActivity.CAMERA_WIDTH, GameActivity.CAMERA_HEIGHT);
        
        this.addPage(new Rectangle(0, 0, 100, 100, this.vbom));
        this.addPage(new Rectangle(0, 0, 100, 100, this.vbom));
        this.addPage(new Rectangle(0, 0, 100, 100, this.vbom));
        this.addPage(new Rectangle(0, 0, 100, 100, this.vbom));
    }

    @Override
    public void onBackKeyPressed() {
        SceneManager.getInstance().createMainMenuScene();
        SceneManager.getInstance().disposeLevelChoiceScene();
    }

    @Override
    public SceneType getSceneType() {
        return SceneType.SCENE_LEVEL_CHOICE;
    }
    
    @Override
    public void disposeScene() {
        super.disposeScene();
    }
}

@@ -125,16 +125,55 @@
 scene;%0A%0A
+import org.andengine.util.debug.Debug;%0A
 import o
@@ -592,24 +592,701 @@
 );%0A        %0A
+        this.registerScrollScenePageListener(new IOnScrollScenePageListener() %7B%0A            @Override%0A            public void onMoveToPageStarted(int oldPageNumber, int newPageNumber) %7B%0A                if(oldPageNumber %3C newPageNumber)%7B%0A                    LevelChoiceScene.this.setParallaxFactor(5f);%0A                %7D%0A                else if(oldPageNumber %3E newPageNumber)%7B%0A                    LevelChoiceScene.this.setParallaxFactor(-5f);%0A                %7D%0A            %7D%0A            @Override%0A            public void onMoveToPageFinished(int oldPageNumber, int newPageNumber) %7B%0A                LevelChoiceScene.this.setParallaxFactor(1f);%0A            %7D%0A        %7D);%0A        %0A
         this

Add background effect on page change