Ecosystem Project - Week 1


Hello Everyone! Welcome to Devlog week 6 of the semester. 

I started my ecosystem project by first, planning. I decided to have a water and a grass area. And then in the grass area I would include flowers and bees to have unique interactions, and then in the water I wanted to have frogs and flys to interact. I drew all these assets out in my drawing program. 

Then I started to combine them in p5.js. First i had 5 frogs and 5 flies, but this was making the canvas and code bulky so I changed it to three. I created classes for the four main elements of the piece,  the frogs, flies, flowers and bees. I was able to use the code from class to create vectors for the classes. Either the way I was coding the constraint or the vector movement but the objects would first, get stuff moving on either axis rather than roam freely, and secondly sometimes get stuck on the border and rubberband back and forth. 

This was a big issue this week and at the moment I haven't found an exact solution. I found that some things like checking for the object slightly before the edge of the canvas rather than the very edge.

Next week I am hoping to fix or improve the rubberband issue and smoothness of the movement. I also need to work on the collision detection and the class interaction.

Leave a comment

Log in with itch.io to leave a comment.