Pac-Man is a classic arcade game where the player navigates Pac-Man through a maze, eating pellets and avoiding ghosts. This project is a web-based implementation of the game using JavaScript, HTML, and CSS.
- JavaScript: For game logic and interactivity.
- HTML: For structuring the game interface.
- CSS: For styling the game.
- Node.js:
- Managing dependencies with
npm
. - Running a local development server using
http-server
. - Using GitHub Actions for Continuous Integration (CI) to deploy the application to GitHub Pages.
- Managing dependencies with
Pac-Man/
├── .github/
│ └── workflows/
│ └── ci.yml
├── src/
│ ├── assets/
│ │ ├── favicon/
│ │ ├── img/
│ │ ├── sounds/
│ ├── classes/
│ │ ├── boundary.js
│ │ ├── ghost.js
│ │ ├── pacman.js
│ │ ├── pellet.js
│ │ └── powerPellet.js
│ ├── collisions/
│ │ └── collisions.js
│ ├── keyboard/
│ │ └── inputHandlers.js
│ ├── maze/
│ │ └── mapOrigin.js
│ ├── index.html
│ ├── index.js
│ ├── settings.js
│ └── styles.css
├── .gitignore
├── package-lock.json
├── package.json
└── README.md
npm start
: Start the development server.npm install
: Install dependencies.
- W: Move up
- A: Move left
- S: Move down
- D: Move right
You can play the game
This project is licensed under the MIT LICENSE.