Skip to content

Digital-Coder/whack-a-mole

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

whack-a-mole

Vanilla JavaScript game

Learn to make a simple grid-based game using HTML, CSS and JavaScript. The idea of whack-a-mole is simple! The player needs to hit the grid with the mole in as many times as possible until the time runs out. In this tutorial, we will cover:

  • document.querySelector
  • textContent
  • forEach
  • addEventListener
  • setInterval
  • classList.add

...and many more inbuilt JavaScript functions.

View the full tutorial [here]:(https://www.youtube.com/watch?v=o93jem7oPnA&t=21s)

As always, if you get stuck or have any questions, please do comment below and I will be sure to get back to you!

I would love to see what you made so please tag me on twitter on @ania_kubow or mention me on Youtube so I can find it and see.

About

Vanilla JavaScript game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 49.5%
  • HTML 36.9%
  • CSS 13.6%