function updatescore(){
  infocontext.globalAlpha = 1 ;
  infocontext.fillStyle = 'white';
  infocontext.clearRect(247, 13, 140, 40);

  infocontext.fillStyle = 'red';
  infocontext.fillRect(247, 13, 140, 40);
  infocontext.fillStyle = 'black';
  infocontext.font = "16pt sans-serif";
  infocontext.fillText("Score:" + score, 260, 40);

  requestAnimationFrame(updatescore);
}
/*------------------------------------
  Function to set up the score board.
--------------------------------------*/
Function to set up the score board.
Function to set up the score board .
function updatescore(){
  infocontext.globalAlpha = 1 ;
  infocontext.fillStyle = 'white';
  infocontext.clearRect(247, 13, 140, 40);
  infocontext.fillStyle = 'red';
  infocontext.fillRect(247, 13, 140, 40);
  infocontext.fillStyle = 'black';
  infocontext.font = "16pt sans-serif";
  infocontext.fillText("Score:" + score, 260, 40);
  requestAnimationFrame(updatescore);
}
function updatescore ( ) { infocontext . globalAlpha = 1 ; infocontext . fillStyle = 'white' ; infocontext . clearRect ( 247 , 13 , 140 , 40 ) ; infocontext . fillStyle = 'red' ; infocontext . fillRect ( 247 , 13 , 140 , 40 ) ; infocontext . fillStyle = 'black' ; infocontext . font = "16pt sans-serif" ; infocontext . fillText ( "Score:" + score , 260 , 40 ) ; requestAnimationFrame ( updatescore ) ; }
Function to set up the score board.
Function to set up the score board .