Pac-man!

Today in class, we learned how to use matrix arrays in Processing to apply certain conditions to numerous objects. For example, each of us made a sketch of a huge, 3000-strong Pac-man army racing across the display screen. Without the usage of arrays, this would have taken thousands of lines of code. However, in our case, it took around 20. (Unfortunately, the screen shot was way too big to post. Sorry! 😛 ) If you want to run the program, though, here is the link: http://openprocessing.org/visuals/?visualID=32732 .

Leave us a reply