-//ステージ選択ステージ
-
-stage = new GameStage();
-
-
-
-stage.runStage = function(){
- GameStage.prototype.runStage.apply(this, []);
- stage.stageNameList = new Array();
- var that = this;
- var stageSelectorClosed = function(retv){
- var tryAgain = true;
- if(retv){
- if(retv.length == 1){
- tryAgain = false;
- }
- }
- if(tryAgain){
- //もう一度選択させる
- var sw = new SelectWidgetClass(mainManager, [that.stageNameList, stageSelectorClosed, false, 0, true]);
- sw.enableCancel = false;
- mainManager.addWidget(sw);
- } else{
- //次のステージへ移動
- mainManager.loadStageFromNetwork(retv[0].stgName);
- }
- };
-
- var stageSelector = new SelectWidgetClass(mainManager, [this.stageNameList, stageSelectorClosed, false, 0, true]);
- stageSelector.enableCancel = false;
- mainManager.addWidget(stageSelector);
-};
-
-stage.addSelectWidgetItemFromStageName = function(title, stgName, selected){
- var item = new SelectWidgetItemClass(true, title, null, selected, title + "ステージへ移動します。\n難易度: ☆☆☆☆☆");
- item.stgName = stgName;
- this.stageNameList.push(item);
-}
-
-var s;
-//ステージ
-s = stage.addSelectWidgetItemFromStageName("街","city", true);
-s = stage.addSelectWidgetItemFromStageName("洞窟","fukushima");
-s = stage.addSelectWidgetItemFromStageName("山","koenma");
-s = stage.addSelectWidgetItemFromStageName("牧場","okubo");
-s = stage.addSelectWidgetItemFromStageName("森","pengin");
-s = stage.addSelectWidgetItemFromStageName("海","sea");
-
-stage;
+//ステージ選択ステージ\r
+\r
+stage = new GameStage();\r
+\r
+stage.stageNameList = new Array();\r
+\r
+stage.runStage = function(){\r
+ GameStage.prototype.runStage.apply(this, []);\r
+ \r
+ var that = this;\r
+ var stageSelectorClosed = function(retv){\r
+ var tryAgain = true;\r
+ if(retv){\r
+ if(retv.length == 1){\r
+ tryAgain = false;\r
+ }\r
+ }\r
+ if(tryAgain){\r
+ //もう一度選択させる\r
+ var sw = new SelectWidgetClass(mainManager, [that.stageNameList, stageSelectorClosed, false, 0, true]);\r
+ sw.enableCancel = false;\r
+ mainManager.addWidget(sw);\r
+ } else{\r
+ //次のステージへ移動\r
+ mainManager.loadStageFromNetwork(retv[0].stgName);\r
+ }\r
+ };\r
+ \r
+ var stageSelector = new SelectWidgetClass(mainManager, [this.stageNameList, stageSelectorClosed, false, 0, true]);\r
+ stageSelector.enableCancel = false;\r
+ mainManager.addWidget(stageSelector);\r
+};\r
+\r
+stage.addSelectWidgetItemFromStageName = function(title, stgName, selected, nanido){\r
+ var item = new SelectWidgetItemClass(false, title, null, selected, title + "ステージへ移動します。\n難易度: " + nanido);\r
+ item.size.x = 60;\r
+ item.size.y = 90;\r
+ item.stgName = stgName;\r
+ this.stageNameList.push(item);\r
+};\r
+\r
+var s;\r
+//ステージ\r
+s = stage.addSelectWidgetItemFromStageName("city.png","city", true, "★☆☆☆☆");\r
+s = stage.addSelectWidgetItemFromStageName("cave.png","fukushima",false, "★★★★☆");\r
+s = stage.addSelectWidgetItemFromStageName("yama.png","koenma",false, "★★☆☆☆");\r
+s = stage.addSelectWidgetItemFromStageName("farm.png","okubo",false, "★★★☆☆");\r
+s = stage.addSelectWidgetItemFromStageName("mori.png","pengin",false, "★★★☆☆");\r
+s = stage.addSelectWidgetItemFromStageName("ike.png","sea",false, "★☆☆☆☆");\r
+\r
+stage;\r