For this midterm project,
I planned to make small game . You have three lives continuing game, when you could not hit the balloon, then the life deduct -1. When you hit the balloon with needle, then score goes up. if you get 30 scores then you win.
I made objects for balloon, and niddle. (Needle can hit the balloon, and middle moves horizontally.)
Using for loop helped to make lot of balloons. At the beginning, set up the specific balloons and I put those to array list . (I could put object in the array list)
u.update could bring inside of update. before bring, must send mouseX to update int newX which is called parameter.
if I did not draw needle again , then it does stay in same place, so I put method call display .It may keep showing needle again and again.
Same way for balloon for dropping.
inorder to interact needle and balloon, using Checkcollision helped make
squared balloon, and when niddle came inside of it then balloons can disappear.
Using Float and return helps returning info.
If you hit the balloon with niddle , and then scores automatically go up and another balloons will be dropped.