22b. Bubble Wrap

Model

First, think about one bubble. How will you represent that? You need to keep track of at least:

Next, think about all of the bubbles. How will you represent a bunch of bubbles?

Drawing

It is good to get your draw handler written early, so you can see what is going on. I recommend that you write one function to draw a single bubble on a background, and another function to draw all of the bubbles.

Logic

You need to remove the bubble you click on from the game. I think that is best done in two steps: