Posts

DEV LOG #4 - 02/25/25

Image
Building upon my class and vector work from last week is this week's project. Instead of having a horde of Penguins moving in a semi-fixed-but-not-really pattern, I wanted to have a unique layout of Penguins being spawned every second. I was originally going to do minute, but quite frankly I was too impatient during testing and sped it up. The code took me a while to figure out, but it's ultimately pretty simple. I re-use the original penguin class from my work last week, but instead of having a penguin pattern created once at startup, I moved it into draw so it could actually change. Small problem: now it runs every frame and these penguins are going crazy! So, what I had to do was create a variable, minVar , to keep track of the amount of time that had passed before allowing a new penguin group to be generated. It was a bit confusing to figure out, as originally I was just checking if minVar no longer equalled itself, as I defined  minVar within the draw function. This shorts...

DEV LOG #3 02/18/25

TODO: write

DEV LOG #2 02/11/25

Image
This week was my first work in p5.js since high school. It was nice to be staring at it's web editor again, it's been so long! We were tasked with creating an iceberg that moved around a sea in a random, noise based pattern to mimic nature. But I thought that was a bit boring, I decided to emulate a penguin walking around on said iceberg. The code is extraordinarily simple. It uses p5's Perlin noise function to set a new X and Y location every frame, which moves the penguin around on the iceberg. This was very easy to get working, and I was very hopeful that my future assignments would be as easy. I was probably wrong. My code can be found here The Development Song of the Week is Shame by System of a Down https://www.youtube.com/watch?v=MSGyVZUCObI

DEV LOG #1: 02/02/2025-02/04/2025

Image
I am not the most efficient coder in the world. My code is often inelegant and inefficient, but I do what I do to get things done.  Which is why coding in logo is such a challenge for my barely functioning orangutan skull. Of all the languages I have ever dealt with this kiddie language from the 80's is somehow the one that frustrates me the most. Yeesh. Our assignment was to create a randomly generating quilt pattern, and this code does just that. The functions diamondlines , blank , and diamondblank all generate 3 different quilt squares The randopattern function does the actual randomization work, choosing one of these 3 patterns to place in order. Then, there's a loop that repeats 6 times, which has a loop inside of it that repeats 4 times, generating 2 squares at a time. You might be wondering why I call  randopattern twice... Well, I designed this initially without randomization as a testbed, and this dual call is a leftover of my initial "call two things 4 times ...