Function homework
https://glitch.com/edit/#!/homework-functions?path=script.js%3A64%3A2
https://editor.p5js.org/kmccloskey2/sketches/TpgL2kZGs
Attached are the links to my glitch homework using functions and my original project. For the translation into the functions, I thought that was pretty simple and helpful as I could just copy and paste from my previous work and use the // assignments I had to create a function for what the design was doing. I figured out how to make pepperoni using functions with parameters- but the only thing I have been struggling with is making the pepperoni move with the pizza. This is difficult because the code is not recognizing my assignment for the variable pep to move +.5 each loop through. I tried many things but by keeping it in the parameter function method, I could not find a way to make them move. It is helpful to meet with a person although I had previously assigned and grouped my code together with // on P5 to distinguish what I wanted it to do (which was easy to assign it to a particular function).
Comments
Post a Comment