A web-based Pacman game served by a Go web server.
- Classic Pacman maze gameplay
- Score tracking
- Keyboard controls (arrow keys)
- Responsive canvas-based rendering
- Make sure you have Go installed (version 1.22.2 or later)
- Clone this repository
- Navigate to the project directory
- Run the application:
go run main.go
- Open your browser and go to
http://localhost:8080
- Use the arrow keys to navigate Pacman through the maze
- Press the Start button to begin the game
- Collect dots to earn points (10 points each)
- Collect power pellets for bonus points (50 points each)
main.go- Go web server that serves the gamestatic/- Directory containing web assetsindex.html- Main HTML filestyle.css- Game stylinggame.js- Game logic and rendering
- Add ghost enemies with AI
- Implement power mode (after eating power pellets)
- Add multiple levels
- Add high score tracking
- Add mobile touch controls
This project is open source and available under the MIT License.# pacman