Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 1.22 KB

README.md

File metadata and controls

23 lines (18 loc) · 1.22 KB

Static Badge GitHub repo size GitHub Release License: CC BY-NC 4.0

Pacman

This program demonstrates multithreading concepts using a Pacman game example. A Timer object manages the Maze panel's repaint cycle at 10 frames per second. Both Pacman and the ghost are implemented as runnable threads, allowing their positions to update automatically. Pacman also utilizes key listeners, enabling user interaction to change its direction dynamically.

User Interface


Class Diagram

Notice Runnable, Thread, and Timer. Timer refresh the Maze 10 frames per second while the Pacman and Ghost runnables keep updating their positions.