Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

tujoe782-coder/Pac-Man

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

2 Commits

Repository files navigation

Pac-Man 🟑

Classic Pac-Man arcade game built with HTML5 Canvas and vanilla JavaScript.

How to Play

  1. Open index.html in any modern web browser
  2. Press SPACE to start the game
  3. Use Arrow Keys to move Pac-Man
  4. Eat all pellets to advance levels
  5. Avoid ghosts (unless powered up!)

Features

  • βœ… Classic maze layout with pellets and power pellets
  • βœ… Arrow key controls with wall collision
  • βœ… 4 ghosts with different AI behaviors:
    • Blinky (Red) - Chases Pac-Man directly
    • Pinky (Pink) - Ambushes from ahead
    • Inky (Cyan) - Random movement
    • Clyde (Orange) - Chases when far, retreats when close
  • βœ… Score and lives display
  • βœ… Game states: Start screen, Playing, Death animation, Game Over, Win
  • βœ… 3 levels with increasing difficulty (speed)
  • βœ… Power mode (eat power pellets to eat ghosts)

Controls

Key Action
↑ Move Up
↓ Move Down
← Move Left
β†’ Move Right
SPACE Start / Restart

Technical Details

  • Pure HTML5 Canvas + Vanilla JavaScript
  • No frameworks required
  • Works offline
  • Responsive keyboard input

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

Languages

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /