@ Chun Song. All rights reserved

​WEEK 05 - ICM

https://editor.p5js.org/boosong/sketches/6JOFDEfG9

Still balloons.

Because I can't precisely control the X coordinate of the balloon due to the map equation for its motion, I built two buildings besides to reduce the uncontrollable feeling when use mousePressed to release a balloon.

I also tried to use mouseDragged and mousePressed to add/delete balloons. Sometimes it works but sometimes cannot delete it but only change a little position of the pressed balloon.

Need time to get used to the object oriented programming.