“Simplicity is the ultimate sophistication.”
Leonardo da Vinci
I am sure you have noticed that there is no actual score in our Score box . What we need in there is some text that increments every time we send a zombie off into space. To do this, we need to do the following:
Add a text field in our HTML.
Format this text field so that it changes size and location, depending on the screen size.
Start at zero and increment every time a bubble zombie appears.
Reset back to zero every time a new game is played.
What’s the Score?
Open the default.html file and type the following ...