updated 添加多关卡支持(4关)

This commit is contained in:
mumuy
2018-01-15 11:59:17 +08:00
parent 022ada6635
commit 4aa1c1b30f
3 changed files with 568 additions and 412 deletions

View File

@@ -237,7 +237,7 @@ function Game(id,params){
this._params = params||{};
this._settings = {
index:0, //布景索引
status:0, //布景状态,0表示未激活/结束,1表示正常,2表示暂停,3表示临时,4表示异常
status:0, //布景状态,0表示未激活/结束,1表示正常,2表示暂停,3表示临时状态
maps:[], //地图队列
audio:[], //音频资源
images:[], //图片资源
@@ -412,6 +412,10 @@ function Game(id,params){
throw new Error('unfound new stage.');
}
};
//获取布景列表
this.getStages = function(){
return _stages;
};
//初始化游戏引擎
this.init = function(){
_index = 0;