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