fixed bug

This commit is contained in:
Joshua Perry 2022-04-29 12:29:54 +01:00
parent dcd194e9f4
commit a6546dfb9e
1 changed files with 1 additions and 0 deletions

View File

@ -20,6 +20,7 @@ function load() {
/*Starts game functionality*/ /*Starts game functionality*/
function startGame() { function startGame() {
document.getElementById("player").className = "character"; document.getElementById("player").className = "character";
lives = 3;
showDisplay("block"); showDisplay("block");
document.getElementById("start").style.display = "none"; document.getElementById("start").style.display = "none";
document.getElementsByClassName("weapon")[0].style.display = "none"; document.getElementsByClassName("weapon")[0].style.display = "none";