From 2ec455a3f6b38e959df26a2581af63d6d0f0d4ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E6=B5=A9=E4=B9=90?= <89932980@qq.com> Date: Fri, 29 Jan 2016 12:23:31 +0800 Subject: [PATCH] =?UTF-8?q?updated=20=E5=8F=82=E6=95=B0=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/game.js b/game.js index 909ce03..633faef 100644 --- a/game.js +++ b/game.js @@ -186,7 +186,7 @@ function Game(id,params){ var Stage = function(params){ this._params = params||{}; this._settings = { - status:1, //布景状态,0表示未激活,1表示正常,2表示暂停,3表示中断或异常,4表示结束 + status:0, //布景状态,0表示未激活,1表示正常,2表示暂停,3表示中断或异常,4表示结束 maps:[], //地图队列 audio:[], //音频资源 images:[], //图片资源 @@ -198,6 +198,7 @@ function Game(id,params){ }; //重置物体位置 Stage.prototype.resetItems = function(){ + this.status = 1; this.items.forEach(function(item,index){ _extend(item,item._settings,item._params); item.index = index; @@ -211,6 +212,7 @@ function Game(id,params){ }; //重置地图 Stage.prototype.resetMaps = function(){ + this.status = 1; this.maps.forEach(function(map){ _extend(map,map._settings,map._params); map.data = JSON.parse(JSON.stringify(map._params.data));