6.0 ICM
- Astro Lee

- Oct 19, 2023
- 2 min read
The last class of the first half of the semester!
This week, it was extra tricky for me. I had a hard time understanding the class structure & integrating loops within them. the 'new' syntax and how that gets fed, stored, etc. I think I'll need more time processing those.
However, regardless of the understanding on my end, with the help of my friend Myrah (who's about to join for the latter half of this class), helped me out with reorganizing this code into class and making random walk start with the click.
It looks really cool, and perhaps for the future I'll try restraining the walk so that it starts dying after a certain walk count. But I'm very satisfied with where I am now. Gonna look at the code a little more before I go to class today.
v this image right here shows where I was confused so much. line 19. I roughly understand the idea of this act, connecting the array and the class, but not really understanding the syntax & relationship between the class & array here. What is happening in that line, and why do I need it?

Hmm, confused, so I'll bring this into class, but in the meantime I'll also add cool iterations I landed on in the process of getting here:
vv this was me back-tracking back to the original form of random walk so I can use this to generate walk that started with a click.
vv And this is the very cool random-Y-threshold click random walk.
Myrah helped me with this one, making my code work with a click & in class, then I altered the sketch back to its original walk state, where it was walking both from the same x & y location.
:) Had fun but really tired. Mid terms is getting me slowly hehe, but this is really enjoyable! I'm planning to add programming classes. Really falling in love with creative coding.


Comments