Skip to content

gadiim/Pac-Man

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pac-Man

Build Status License: MIT GitHub Pages JavaScript Node.js

Objective

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.

gameClip

Tools

  • 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.

Project Structure

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

Scripts

  • npm start: Start the development server.
  • npm install: Install dependencies.

Controls

  • W: Move up
  • A: Move left
  • S: Move down
  • D: Move right

GitHub Pages

You can play the game

License

This project is licensed under the MIT LICENSE.

↑ Top

Forks Stars Watchers

Releases

No releases published

Packages

No packages published