From d09a02b308d389c791632af0c40cf32d15cb0d9e Mon Sep 17 00:00:00 2001 From: mumuy Date: Mon, 15 Jan 2018 18:29:36 +0800 Subject: [PATCH] =?UTF-8?q?updated=20=E4=BF=AE=E5=A4=8D=E7=8E=A9=E5=A4=9A?= =?UTF-8?q?=E7=9B=98=E5=90=8E=EF=BC=8C=E7=AC=AC2=E5=85=B3=E8=B5=B7?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E6=9C=AA=E9=87=8D=E7=BD=AE=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game.js | 1 + index.js | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/game.js b/game.js index 9670c24..93a1374 100644 --- a/game.js +++ b/game.js @@ -402,6 +402,7 @@ function Game(id,params){ _stages[_index].status = 0; _index = index; _stages[_index].status = 1; + _stages[_index].reset(); //重置 return _stages[_index]; }; //下个布景 diff --git a/index.js b/index.js index a4c6788..50e613e 100644 --- a/index.js +++ b/index.js @@ -1033,8 +1033,7 @@ case 32: //空格 _SCORE = 0; _LIFE = 5; - var st = game.setStage(1); - st.reset(); + game.setStage(1); break; } });