Week 4 (ICM)

October 17th, 2010 in Computational Media by 0 Comments

Coding Assignment: Re-organize the code of a previous assignment or example using functions and objects. If you are inspired by the power of modularity, feel free to elaborate on the assignment.

Solution: Processing Code

SpellBot V3 code was given a major facelift. Previously there was only the main class with a great number of methods that dealt with the bot, bubbles, bar, listeners, and instructions. This time around, each on of the previously mentioned sections have been separated into their own class, with appropriate methods. This not only allows for better organized code, but for smarter solutions to previous issues. Instead of having multiple methods making sure only one item was carried at a time, now only one method is needed.

From a user’s standpoint, nothing has changed. From a programmers view, the difference is night and day.

Author: ezraezra

I see you looking...

Leave a Reply