For this assignment we were given some starter code and asked to complete the missing pieces to make it work properly. The goal was for all the PacMen to move at random while staying within the browser screen. This meant we had to set boundaries for the PacMen to "bounce" off and then change directions.
If you follow the link below you will see an empty screen with two buttons. You can add unlimited PacMen to the screen by clicking "Add PacMan". When you click the button "Start Game" they will begin to move across the screen at random. The more you click "Start Game", the faster they move.
You can visit my repository for this exercise to see the coding and license information!
View My Repository