Final Project

3/21/19

THE PLAN: take the alien homework that i made in the past update it using new concepts we learned. also make the background more dynamic. replace some of the repetitive things with arrays and constructors. add more if statements for more interactions

For the final project we were required to demonstrate what we learned during the vestibule period. A couple people in our class were making simple games and I found a lot of references, and guides online that would of helped; however, I wanted to do something more original and challenging. I decided to improve and apply concepts we learned during these two weeks to a homework assignment that I was very proud of during my second day in class that I never got to present. The Assignment took me about atleast five hours to complete. The code itself was simple in nature but I was experimenting with the IF statements before we learned about them and used improper syntax (I was missing a few brackets). The code took a up a lot of lines because I had set data points for every object. The code was interactive in that it had 3 actions based on the mouse click and it showed people you can have fun and make something interesting with just basics.

The Original 11 herbs and spices:

In the new code I utilized the constructor function to make all the windows for me. I created an empty array ran a for loop function and had the array assigned to the function Window which created all the windows. I also utilized the constructor to give my plain background a bunch of stars. If you go into the index file you can also link other tabs into the sketch. I decided to create 4 tabs. I put all the objects into a folder, along with some functions, preloads and variables, and created an assets folder to hold my 3 images that are preloaded. All the data in the code is using variables unlike the first code. The only hard coded values were the fills where I wanted specific hues.

We have the technology we can rebuilt it:

Damn did you lose weight code?





Leave a comment