diff --git a/oppgaver/uke7/pokemon/script.js b/oppgaver/uke7/pokemon/script.js index 5412c56..e9bb379 100644 --- a/oppgaver/uke7/pokemon/script.js +++ b/oppgaver/uke7/pokemon/script.js @@ -28,19 +28,23 @@ let drowzee = { level: 33, }; +let bjarne = { + name: "Bjarne", + image: "Images/pokemonTrainerIdle.png", + pokemon: [], +} let possiblePokemon = [pikachu, bulbasaur, oranguru, drowzee]; let randomPokemon = null; -let playerName = "Bjarne"; -let playerImage = "/Images/pokemonTrainerIdle.png"; -let playerPokemon = []; - let app = document.getElementById("app"); updateView(); function updateView() { getRandomPokemon() + // randomPokemon.level = Math.floor(Math.random() * 100) + // randomPokemon.health = Math.floor(Math.random() * 100) + // console.log(randomPokemon.level, randomPokemon.health); app.innerHTML = /*HTML*/ `