function startGame() {
  //background(225);
  background(173, 216, 230);
  stroke("black");
  noFill();
  stroke("black");
  rect(0, 0, canvasMax, canvasMax);

  bags1.generateBags();
  if (bags1.checkCollision(character)) {
    bags1.score += round(random(50, 100));
  }

  //console.log("character moving");
  character.move(label);

  character.show();
  if (character.endGame()) {
    guessStart = true;
  }
}
// start the first sentence color game
start the first sentence color game
start the first sentence color game
function startGame() {
  background(173, 216, 230);
  stroke("black");
  noFill();
  stroke("black");
  rect(0, 0, canvasMax, canvasMax);
  bags1.generateBags();
  if (bags1.checkCollision(character)) {
    bags1.score += round(random(50, 100));
  }
  character.move(label);
  character.show();
  if (character.endGame()) {
    guessStart = true;
  }
}
function startGame ( ) { background ( 173 , 216 , 230 ) ; stroke ( "black" ) ; noFill ( ) ; stroke ( "black" ) ; rect ( 0 , 0 , canvasMax , canvasMax ) ; bags1 . generateBags ( ) ; if ( bags1 . checkCollision ( character ) ) { bags1 . score += round ( random ( 50 , 100 ) ) ; } character . move ( label ) ; character . show ( ) ; if ( character . endGame ( ) ) { guessStart = true ; } }
start the first sentence color game
start the first sentence color game
//background(225); //console.log("character moving");