Skip to content

sansitachaudhury/PacMan

Repository files navigation

PacMan Arcade Game

A classic PacMan style arcade game built using HTML, CSS & JavaScript featuring smooth movement, score tracking, life system and replay functionality.

It focuses on core game logic, real-time gameplay and collision detection without using any external libraries.


Features

  • Smooth PacMan movement with keyboard controls
  • Ghost enemies with random movement logic
  • Wall and food collision detection
  • Score tracking system
  • Life system with visual indicators (❤️)
  • Replay button on game over (without refreshing the page)
  • Clean and responsive game loop

Tech Stack

  • HTML — rendering game graphics
  • CSS — basic UI styling
  • JavaScript — game logic, movement and collision handling

Controls

Key Action
⬆️ / W Move Up
⬇️ / S Move Down
⬅️ / A Move Left
➡️ / D Move Right

Replay Logic

  • The game ends when all lives are lost
  • A Replay button appears on game over
  • Replay resets score, lives and entity positions (players & ghosts) without refreshing the page

Screenshots

Gameplay

image

Game Over & Replay

image

About

Built a PacMan style arcade game using HTML, CSS & JavaScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors