I'm trying to make a bubble popping game, and so far I have the bubbles rising up from the bottom of the screen and disappearing out the top. However, I can't get the code working to make them pop. My code calls a class however in this coding instance, I can't do that since this program will be used on a phone as a kid friendly app. Any help would be appreciated since I'm not sure how to get this to work properly.
All It needs to do is pop a bubble when the mouse button is clicked. If I was able to use classes, it would be rather easy, but I have to have it all in one page in order for it to be part of another application that a friend is doing. I'll even provide my code so people can look at it. Sadly, I'm not done commenting it out yet.
//Floats and sets up the Array of Bubbles
float [][] bubble = new float [50][5];
// Sets the on or off state of the Bubbles as a Boolean