Week #7


This project requires me to create an emergent environment. For me the first thing this made me think of was a natural environment. The order and chaos of natural life is the prefect scenario to simulate if one is to create an emergent environment. I thought of a few ideas but one that kept coming to mind was an ant colony vs an anteater, and their emergent battle for domination of the food chain. This was my first outline of what I wanted to create, ants that approached a position(the bread) then flipped around and returned to their ant hill. While this occurred, an anteater would at random poppet from the side of the screen to stick his tongue out and attempt to eat ants. The randomness of the anteater and his tongue would create the emergent element. I also learned about a function called p5.Vector.sub() this will subtract one vector from another and it will be the main way I will make the ants go to and from the bread. Things are looking ok so far. I added an anteater timer that will randomly spawn an anteater if the timer is not on cooldown, but a lot more needs to be done to bring it to life. Right now I need a way to stagnate the entrance of the ants, and to think more about how the anteater is going to be incorporated. 

I made it so the anteater bounces around the screen in a random direction, making it's movements more emergent and suspenseful. The ants will all attempt to take the bread back to their home but if the anteater gets one of them they become the toast. I also added some graphics that make the ant and anteaters move in the direction they are facing.  I added breadcrumbs that the ants can carry, indicating if they have obtained the bread.

Here is the code:https://editor.p5js.org/SunyCoder444/sketches/V5cvzxPxx

Leave a comment

Log in with itch.io to leave a comment.