Playing with functions
I took a previous assignment the one that I did in week two and break the elements out into separate function. As you can see at the picture below, by using function this week, the code was shortened to almost one-sixth of what the code I wrote before(from 1229 lines to 191 lines!) and I even developed the work in that short code. I think there would be another way to make the code more simple and I want to figure it out.
I also added text function and set each character's speed differently and make them move from left to right. the text color changes when mouse clicked.