Skip to content

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.

Notifications You must be signed in to change notification settings

Sajawal-hacker/whack-a-mole

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d17813d · May 1, 2020

History

2 Commits
May 1, 2020
May 1, 2020
May 1, 2020
May 1, 2020
May 1, 2020

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/channel/UCOvPKFvyNqzrebxDiSsUgpA)

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 mention me on Youtube so I can find it and see.

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published