Week #3
For week 3 I was tasked with creating a class filled with creatures that can move around with each other on the sketch in harmony. Inspired by last week's iceberg tracking challenge, I decided to include a friendly creature native to frigid habitats, similar to icebergs, penguins!Humble beginnings! We have all of the basics of a class, a display, a move function, it's looking pretty good. The main challenge will be finding a way to actually make these little circles look and move like penguins! Let's see what we can do.
Ahh! My eyes, it's flashing so quickly, abort, abort! Man, the penguins rabidly flashed across the screen, this is not the peeling noise i'm used to, let's adjust some thing, we can't just copy and past from our last project...
Maps from The Nature Of Code have been implemented, penguins are still flashing but they move in a tad more reasonable manner, let's try to implement some more tactics.
I have added a "noise offset" the issue before was that the penguins were moving off the exact same value, it worked for the iceberg because there was only one value, now with two we need a new solution. Right now with random offsets they move on their own unique journey, but to make things more natural and get that "noise" type movement we are going to have to increment the offsets.
Not too shabby, Perlin Noise has proven to be quite the ally when it comes to detecting realistic movement! I tried to implement some angle based rotation that would make the penguins face in the direction I wished for them to, this may be something to research further with the help of my professor... Here is the official link:https://editor.p5js.org/SunyCoder444/sketches/O3elxYiMk I was inspired by the plentiful amount of penguin videos I've seen, I enjoy the way they just waddle around together and hang out. I wanted to add more realistic things, like the waddling of penguins and them facing where they were going, but I had some serious difficulty utilizing these things with noise. To improve this I would need to know more about movement with peeling noise, and how I match the movements of the object to the noise, maybe changing the noise value to some sort of degree? I'm not sure right now but I'm sure I can learn.
Drawing, Moving, and Seeing with Code - Spring 2025
Status | In development |
Category | Other |
Author | SUNYCoder444 |
Leave a comment
Log in with itch.io to leave a comment.