For this week’s assignment, I created a bunch of Fairy Dust from Spirited Away 😀
They will be very chill and sing Doraemon Theme song to you as long as you don’t press the mouse!
My original idea was to create a group of them in the shape of a rectangle that can move with the mouse. But later, I found out that if I wanted them to be in their positions and form a rectangle, they cannot follow the mouse position. So I modified the function and added forces to make them stay where they were.
They would get anxious when the mouse is being pressed. To achieve this effect, I used mousePressed and mouseReleased functions to modify the range that the distance between the original position and the current position is mapped to.
Keep the sound on and enjoy your interaction with the Fairy Dust!