NOC WEEK 6

code: https://editor.p5js.org/DianaXu/sketches/ynjS3zcAC

I replaced circles with lines and created two “creatures”. I set GRAVITY to 800 to make the points stay closed to each other. I restricted the attraction range to 100 so the attraction force wouldn’t go crazy. I also added force between the red and white creature, so the red creature will stay away from the white creature all the time. 

Leave a Reply