Week #2
During week 2 I was challenged to create an iceberg utilizing Perlin noise. It wasn't the easiest, but I enjoyed my time creating it! Things began with a rather simple rendition of a Perlin noise based object. As we can say a few things are established here, the x and y positions will moves based on noise(Perlin noise) calculations. We scale the noise calculation to the width and height and subtract height from the y noise to ensure the circle will start lower on the page. I attempted to make a line follow it around, but it doesn't really work in this way, the line will just shake around with the circle, instead of following it in a path. Some changes were certainly in order.
I implemented a much better looking line that follows the iceberg. It uses an array that stores the X and Y variables of the circle, then in a for loop in will constantly draw a little red circle in the middle on the iceberg, creating what looks line a red line following the iceberg about.
A few aesthetic changes were added, the iceberg tracker was made a tad smaller, and a year counter was implemented, that slowly increases based on frame count.
Last, but certainly not least, a map is added to add that final touch of realism. It's not perfect, but it does kind of look like a little iceberg squiggling about the sea!
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.