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

@ -12,5 +12,5 @@
- [x] NPC根据玩家坐标实时自动寻径 - [x] NPC根据玩家坐标实时自动寻径
- [x] 吃豆积分系统 - [x] 吃豆积分系统
- [x] 能量豆功能 - [x] 能量豆功能
- [ ] 特殊物品记分 - [x] 多关卡
- [ ] 多关卡 - [ ] 特殊物品记分

View File

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

970
index.js

File diff suppressed because it is too large Load Diff