Skip to content

This web project is a recreation of the classic Pacman game built using Javascript and HTML canvas. The game includes collision detection to allow the player to navigate through walls, update their score, and end the game. Additionally, the ghosts in the game move in a random algorithm, giving players a challenge to avoid and catch them.

Notifications You must be signed in to change notification settings

zukentag/Pacman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pacman

Play

You can play the game on all canvas-enabled browsers. The game is resolution-independent and smoothly scales to fit the size of any screen. Performance may increase by shrinking the window or zooming in with your browser. The game does not have touch controls for mobile browsers.

Main Controls

  • W: to go up
  • A: to go left
  • S: to go down
  • D: to go right

Algorithm Description

The mazes are built carefully to closely match design patterns deduced from the original maps found in Pac-Man.

  • Collision Detection: It is used to check collision between different game objects to move between walls, update the score & end the game
  • Ghost Movement: At any point, the ghost can move in any available direction using a random algorithm

High Scores

For each game score is stored on your browser, it increases as you move through more tiles.

About

This web project is a recreation of the classic Pacman game built using Javascript and HTML canvas. The game includes collision detection to allow the player to navigate through walls, update their score, and end the game. Additionally, the ghosts in the game move in a random algorithm, giving players a challenge to avoid and catch them.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published