Game Project - Part 4: Side Scrolling
So, there is no actual code for this one or anything like that, they first come out with the actual like, midterm assignment first which comes out in a little bit less than a month, but still, I will annotate all of this stuff just because why not right.
It looks like they want you to do a few things, you make an array of all tree positions, an array of the clouds, an array of the mountain positions as well. So in essence it looks like you have ALL of your given code and what not written right there as it is outright, and then you iterate over all of it to draw the given items, and then you achieve this whole side-scrolling idea by just in your drawing for loops you essentially just add an offset to the items.
All of this is done in the setup() function of the code and what not, and then all of the drawing code with the for-loops and what not, you put all of that code inside of the draw() function, very calm cool and chill kind of stuff.
Of course you can use a bunch of the different already set up code into this one, so just things like the drawing code for your character, being able to draw and what not, and being able to fall down the canyon and being able to pick up some items and what not.
