Video Posted on
This is the main file. Change the file extension to .m. In this program, a zombie (a lazy student shown in Red) looks for the nearest targets (students shown in Yellow STARs) in the classroom and persuade them to be zombies (lazy). Surprisingly, there are only few students who can survive from the zombies. 🙂 Enjoy the programs below.
Change the extensions of the following function to .p.
This function initializes the positions of the targets (students) and zombie.
This function finds the nearest targets and convert them into zombies.
This function updates the positions of the targets and zombies.
This function draws the new positions of the targets and zombies.