From eaad6921d9cb31a20196a01127b18c1a98f95f8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E6=B5=A9=E4=B9=90?= <89932980@qq.com> Date: Tue, 12 Jan 2016 13:34:29 +0800 Subject: [PATCH] =?UTF-8?q?updated=20=E6=B8=B8=E6=88=8F=E6=9A=82=E5=81=9C?= =?UTF-8?q?=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/index.js b/index.js index 1fd9c7f..b34acb3 100644 --- a/index.js +++ b/index.js @@ -222,6 +222,7 @@ } } }); + //物品地图 var goods = stage.createMap({ x:60, y:10, @@ -255,6 +256,21 @@ context.fillText(_SCORE,this.x+12,this.y); } }); + //状态文字 + stage.createItem({ + x:690, + y:320, + frames:25, + draw:function(context){ + if(stage.status==2&&this.times%2){ + context.font = '24px Helvetica'; + context.textAlign = 'left'; + context.textBaseline = 'center'; + context.fillStyle = '#FFF'; + context.fillText('PAUSE',this.x,this.y); + } + } + }); //生命值 stage.createItem({ x:705,