In ths Project , The 4 different images of the PacMan at the same time.then , it start moving at the starter of the screen x-axis.PacMan reverse his trajectory once the PacMan image hits the edge of the screen on the x-axis. Runs this fumction repeatedly in every 200 milliseconds.
This project can be further enhanced by addig the PacMan into a specific area of the screen and moves the PacMan to random locations.