assets/javascript/game.js
// This function will initialize the enemy's value from the global object variables defined above
This function will initialize the enemy's value from the global object variables defined above
This function will initialize the enemy ' s value from the global object variables defined above
function initializeDefender(chosenDefender) {
  defender.name = chosenDefender.name;
  defender.health = chosenDefender.health;
  defender.baseAttack = chosenDefender.baseAttack;
  defender.attack = chosenDefender.attack;
}
function initializeDefender ( chosenDefender ) { defender . name = chosenDefender . name ; defender . health = chosenDefender . health ; defender . baseAttack = chosenDefender . baseAttack ; defender . attack = chosenDefender . attack ; }
This function will initialize the enemy's value from the global object variables defined above
This function will initialize the enemy ' s value from the global object variables defined above