I have kept the styling at a bare minimum for you to go wild and make it your own. Please tag me as I would LOVE to see your game!!!

In this game I show you how to make Pac-Man move around the grid while avoiding walls, show you how to use the constructor method for all four ghosts to apply their unique characteristics to each one, including at what speed they move at. Clyde obviously being the slowest.

Inbuilt JavaScript functions I have used:

  • addEventListener()
  • getElementById()
  • querySelector()
  • for Loop
  • appendChild()
  • createElement()
  • push()
  • if else statements
  • classList
  • switch case
  • keyCode
  • forEach()
  • setTimeout
  • Class
  • constructor
  • setInterval()
  • removeEventListener

#javascript #html #css #game-development #programming

Build PACMAN in vanilla JavaScript, HTML and CSS
2.35 GEEK