Skip to content

🕹️ Enjoy the classic arcade fun in this Pac-Man game! Guide Pac-Man through the maze and avoid colorful ghosts. With simple controls and retro vibes, it's a nostalgic adventure for players of all ages. Start gobbling and show your high score skills!

Notifications You must be signed in to change notification settings

NisreenSalameh/PacMan-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PacMan-game

Pac-Man game screenshot

This is a simple implementation of the classic Pac-Man game using HTML5 and JavaScript. The game utilizes the HTML canvas element for rendering graphics.

How to play

  • Use the arrow keys (up, down, left, right) to navigate Pac-Man through the maze.
  • Eat all the food items to win the game. Beware of the ghosts!
  • If a ghost touches Pac-Man, you lose a life. You have 3 lives. Lose all lives, and it's game over.
  • The game features multiple levels, increasing in difficulty as you progress.

Game Features

  • Classic Pac-Man and ghost characters.
  • Walls and barriers that define the maze layout.
  • Food items that Pac-Man needs to eat to win.
  • Modals for game start, level transitions, game over, and victory messages.
  • Keeps track of the score and remaining lives.

Getting Started

  1. Clone or download the repository to your local machine.
git clone https://github.com/NisreenSalameh/PacMan-game.git
  1. Open the index.html file in a modern web browser.
  2. Use arrow keys to control Pac-Man and navigate through the maze.
  3. Enjoy the game.

Customization

You can customize the game by modifying the following:

  • Maze layout: You can design your own maze by changing the configuration in the game.js file.
  • Ghost behavior: Adjust ghost movement in the ghost.js file.
  • Game difficulty: Modify game constants in the game.js file to make the game easier or harder.

This game was published using GitHub Pages.

Explore the ArtisticAlchemy Landing Page: https://nisreensalameh.github.io/PacMan-game/

Contributors

  • Nisreen Salameh - Developer and Designer

Note

Feel free to contribute to the project, report any issues, or add new features! Enjoy the nostalgia of playing Pac-Man.

About

🕹️ Enjoy the classic arcade fun in this Pac-Man game! Guide Pac-Man through the maze and avoid colorful ghosts. With simple controls and retro vibes, it's a nostalgic adventure for players of all ages. Start gobbling and show your high score skills!

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published