骰子游戏body#can;can;ctx;[];;;]]];window.οnlοad= function(){
can);
ctx);ctx.clearRect(0,0,can.width,can.height);
for(var i=0;i
ctx.fillStyle = 'orange';
ctx.fillRect(diceCoordinates[i][0],diceCoordinates[i][1],40,40);
draw(diceCoordinates[i],i,pointCoordinates[i]);
}*/loadCoordinates();document.getElementById((){){;
tidck);
}else{)){;
SumArray.splice(0,SumArray.length);
loadCoordinates();
tidck);
}
}
};
}loadCoordinates(){
ctx.clearRect(,can.width,can.height);){
ctx.fillStyle;
ctx.fillRect(diceCoordinates[i][);
draw(diceCoordinates[i],i,pointCoordinates[i]);
}
}drawCoordinates()
{){//清除定时执行
window.clearInterval(tidck););
}){
window.clearInterval(tidck);
tidck);
}){
window.clearInterval(tidck);
tidck);
}){
window.clearInterval(tidck);SumArray.push(ranSum);
drawText(ranSum);
}else{;);){;););
ranSum;
draw(diceCoordinates[i],ran,pointCoordinates[ran]);/**/}
}
count++;
}draw(dice,ran,drowArray){
ctx.fillStyle;){drowArray[i];
ctx.beginPath();)
{);
}else{
ctx.arc(array[);
}
ctx.closePath();
ctx.fill();
}
}functiondrawText(ranSum){
ctx.font;
ctx.fillText());
}