updated 游戏暂停状态
This commit is contained in:
parent
a1fabf381f
commit
eaad6921d9
16
index.js
16
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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user