assets/javascript/game.js
// This function will initialize the character value from the global object variables defined above
This function will initialize the character value from the global object variables defined above
This function will initialize the character value from the global object variables defined above
function initializeCharacter(chosenCharacter) {
  character.name = chosenCharacter.name;
  character.health = chosenCharacter.health;
  character.baseAttack = chosenCharacter.baseAttack;
  character.attack = chosenCharacter.attack;
}
function initializeCharacter ( chosenCharacter ) { character . name = chosenCharacter . name ; character . health = chosenCharacter . health ; character . baseAttack = chosenCharacter . baseAttack ; character . attack = chosenCharacter . attack ; }
This function will initialize the character value from the global object variables defined above
This function will initialize the character value from the global object variables defined above