Smashing September Sale - Get 25% Off Certificates and Diplomas! Limited-time Offer - ends Friday, 17th September 2021

Claim My 25% OFF

Fully Dynamic Pacman Game using JavaScript

Get coding and learn to create a fully dynamic Pacman game using JavaScript with this free online programming course.

Publisher: Laurence Svekis ✔
In this course, you will learn how to create a Fully Dynamic Pacman Game from scratch using JavaScript. The Pacman Game Boards created in this version of the game are generated dynamically, and the screen sizing also adjusts dynamically to fit the client-screen it is being run on. The course provides step-by-step demonstrations on how to apply the various JavaScript Functions, HTML Classes, and CSS Styling Properties.
Fully Dynamic Pacman Game using JavaScript
  • Duration

    1.5-3 Hours
  • Students

  • Accreditation






View course modules


This course provides a step-by-step demonstration for creating a Fully Dynamic Pacman Game from scratch using JavaScript DOM Manipulation. The main set-up consists of the HTML file as the basic shell of the project, a CSS Style Sheet, and the JavaScript file. The game code is also logged out in the Google Chrome browser using DevTools. The first module of this course includes instructions on how to create the main Assets that are needed for the Pacman Game. The module also provides demonstrations on how to use the JavaScript Query Selector to select the Pacman Game Elements, and how to create the Pacman Game Board and append items to it. This module also includes the methods for adding movement animations to the game for the movements of the Pacman and the Ghosts. JavaScript’s Math Random function is deployed in this module, as well, for adding logic to the Pacman Ghosts’ movement.

The Second module of this programming course details the methods for keeping Score and tracking the Pacman’s Lives as part of the gameplay. The Score and Lives are also tied to the Game Win Condition and Game Over State. The processes for stopping, starting, and restarting the game depending on the gameplay conditions are demonstrated in this second module as well. Instructions for adding the Pacman PowerUp and PowerCount functions for when the Pacman eats the Power Pellet are also detailed within this module. The module also provides the instructions for generating the Pacman Game Board dynamically using Math Random, and the method for using the Box Size function to update Game Board size depending on the client screen size. The module and course conclude with the final topic that consists of the game testing and final game review where the learner is provided with a complete run-through of the source code.

This course is a must-have for anyone wanting to learn how to build a game from scratch, or anyone looking to practice their JavaScript DOM Manipulation skills. Detailed instructions are provided at every step of the game creation process. And, since it is a video-based course, you get a ‘hands-on' experience that you can then apply by yourself, building your own game and further customizing it to your liking. All of the Source Code has been included for this purpose and can be found in the Course Resources Section. The detailed Assessment section also tests learner-knowledge and presents as a surefire way of information reinforcement and retention. Another advantage of this online course is that it is free. The value of time has also been considered, as it has a maximum study duration of only three hours. So enroll now and benefit from the programming lesson that is being offered.

Start Course Now