updated 记分公式修改,仅剩一条命没有生命加成
This commit is contained in:
parent
de8f53d4af
commit
c183cf629f
2
index.js
2
index.js
@ -487,7 +487,7 @@
|
|||||||
context.font = '20px Helvetica';
|
context.font = '20px Helvetica';
|
||||||
context.textAlign = 'center';
|
context.textAlign = 'center';
|
||||||
context.textBaseline = 'middle';
|
context.textBaseline = 'middle';
|
||||||
context.fillText('FINAL SCORE: '+(_SCORE+50*_LIFE),this.x,this.y);
|
context.fillText('FINAL SCORE: '+(_SCORE+50*Math.max(_LIFE-1,0)),this.x,this.y);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
//事件绑定
|
//事件绑定
|
||||||
|
Loading…
x
Reference in New Issue
Block a user