This is a simple implementation of the classic Pacman game using JavaScript.
- Pacman character that can move in four directions
- Ghosts that move randomly
- Score tracking
- Restart functionality
- Option to choose maze
Open the index.html
file in your browser to start the game.
Use the arrow keys to move Pacman.
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.
- Add more ghosts
- Implement different ghost behaviors
- Add power-ups for Pacman
- Add more maze
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:
- Go to the Issues tab of the GitHub repository.
- Click on the "New issue" button.
- Enter a title for your issue. Try to make it as descriptive as possible.
- 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.
- Click "Submit new issue" to create the ticket.
We appreciate your help in improving the game!