updated 新版chrome 对清除画布失效问题解决
This commit is contained in:
parent
0d1f077a73
commit
e5d9f554ab
2
game.js
2
game.js
@ -333,6 +333,8 @@ function Game(id,params){
|
|||||||
var fn = function(){
|
var fn = function(){
|
||||||
var stage = _stages[_index];
|
var stage = _stages[_index];
|
||||||
_context.clearRect(0,0,_.width,_.height); //清除画布
|
_context.clearRect(0,0,_.width,_.height); //清除画布
|
||||||
|
_context.fillStyle = '#000000';
|
||||||
|
_context.fillRect(0,0,_.width,_.height);
|
||||||
f++;
|
f++;
|
||||||
if(stage.timeout){
|
if(stage.timeout){
|
||||||
stage.timeout--;
|
stage.timeout--;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user