Worksheet:
- #1 Completed in class with Elif.
- #2 The on/off switch is giving me a good bit of trouble, specifically making the true-false logic work. Had to talk through the true/false and “ready to change” logic with my software engineer boyfriend - the concept itself made sense to me but I couldn’t figure out how to implement it.
- #3 The slider ended up being a lot easier to code than I expected it to. I started by getting the physical elements of the slider into the sketch. Then, I confined the slider dot to the space inside the slider bar. After that, I also tied it to mouseX but only when the mouse is pressed. Finally, I added the x-value above so a user would know where on the slider bar their slider button is.
- #4 I think I interpreted this problem differently than my classmates. I understood it to be that every half second the rectangle draws for one frame, and the rest of the time you just see the background. My classmates look like they’re drawing rectangles for a half second and then back to just the background for a half second. I ended up using frame rate to draw my rectangle, although my first instinct was to count using milliseconds.
Partner Exercise:
- I worked with Elif to design a mini-game. Our first idea was to make one of those games where you have to guess which cup has an object hidden beneath it. The idea ended up feeling a little complex - we did not feel like we knew enough to code the cups shuffling and then how to randomize which cup the object was hiding under. We did play with a couple iterations of code trying to work towards that goal. We ended up deciding to make a simpler version of this idea where each cup had a different object under it, and changed it from a single object to a different one under each cup. Every time the code restarts, they randomize, so you will never know which “mood” you will pick!