Exemplo n.º 1
0
        public void initialize(ContentUtil content, SceneActivationParameters parameters)
        {
            this.exit = false;
            this.content = content;
            this.scenes = new Dictionary<string,IScene>();
            this.defaultScene = "menu";

            this.scenes["story_01"] = new VideoScene("video/story_01");
            this.scenes["story_02"] = new VideoScene("video/story_02");
            this.scenes["story_03"] = new VideoScene("video/story_03");
            this.scenes["story_04"] = new VideoScene("video/story_04");
            this.scenes["credits"] = new VideoScene("video/credits");

            SceneChain storyMode = new SceneChain();
            storyMode.addToChain(
                "story_01",
                "level_01",
                "story_02",
                "level_02",
                "story_03",
                "level_03",
                "story_04",
                "level_04",
                "credits");
            this.scenes["story_mode"] = storyMode;

            MenuScene menu = new MenuScene();
            this.scenes["menu"] = menu;
            //menu.add(new MenuItem("story_mode", "Story Mode", this));

            this.addDanceScene("level_01", menu);
            this.addDanceScene("level_02", menu);
            this.addDanceScene("level_03", menu);
            this.addDanceScene("level_04", menu);
            //menu.add(new MenuItem("highscore", "Highscore", new HighscoreParams("T-Bone the Steak")));
            this.scenes["highscore"] = new HighscoreScene();

            //menu.add(new MenuItem("exit", "Quit Game"));

            menu.buildMenuStructure(this);

            this.initIntroScenes();
        }
Exemplo n.º 2
0
 private void addDanceScene(String scriptname, MenuScene menu)
 {
     DanceScene scene = new DanceScene(scriptname);
     this.scenes[scriptname] = scene;
     //menu.add(new MenuItem(scriptname, scene.title));
 }