I decided to take my time and really understand the class, arrays, html… So I’ve gathered some questions ….

Questions : last weeks worksheet

Exercise 1.

Question about my code and Mary’s code :

after studying Mary’s code, rewatching the tutorials https://www.youtube.com/watch?v=rHiSsgFRgx4

  1. https://editor.p5js.org/anikaki/sketches/lxqLUpynm (Mary’s)
  2. https://editor.p5js.org/anikaki/sketches/agJgmTOcQ (Mine)

Screen Shot 2022-10-18 at 9.53.48 PM.png

mine

mine

Why can’t we write this ??

Question 2 :

Screen Shot 2022-10-20 at 10.50.42 AM.png

Don’t we need an if ( mousePressed ) and also should’t we be calling the function in draw ??