Skip to content

Latest commit

 

History

History
50 lines (33 loc) · 1.75 KB

readme.md

File metadata and controls

50 lines (33 loc) · 1.75 KB

JavaScript Pacman Game

This is a simple implementation of the classic Pacman game using JavaScript.

Screenshot from 2024-01-25 19-19-33

Features

  • Pacman character that can move in four directions
  • Ghosts that move randomly
  • Score tracking
  • Restart functionality
  • Option to choose maze

How to Run

Open the index.html file in your browser to start the game.

Controls

Use the arrow keys to move Pacman.

Code Structure

  • index.js: This is the main JavaScript file that contains the game logic.
  • Ghost.js: This file defines the Ghost class.
  • ghostmoves.js: This file defines the Ghost random movement.
  • Pacman.js: This file defines the Pacman class.
  • Setup.js: This file contains all the init data.

The game loop is run using setInterval and updates the game state at a regular interval.

Future Improvements

  • Add more ghosts
  • Implement different ghost behaviors
  • Add power-ups for Pacman
  • Add more maze

Reporting Bugs or Issues

If you encounter any bugs or issues while playing the game, please open a ticket so we can address it. Here's how you can do that:

  1. Go to the Issues tab of the GitHub repository.
  2. Click on the "New issue" button.
  3. Enter a title for your issue. Try to make it as descriptive as possible.
  4. In the description, provide as much detail as you can about the issue. Include things like what you were doing when the issue occurred, the behavior you expected, and the behavior you observed. If possible, include steps to reproduce the issue.
  5. Click "Submit new issue" to create the ticket.

We appreciate your help in improving the game!