updated 游戏暂停状态

This commit is contained in:
郑浩乐 2016-01-12 13:34:29 +08:00
parent a1fabf381f
commit eaad6921d9

View File

@ -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,