We'll do this in a couple of steps.
We'd already decided that each top and each bottom would be a separate MySprite that will get added to the pipes array. So let's put that much in.
Normally, MySprites are created given the url of an image, but in this case our plan is to reuse the same image for all the pipes. So we haven't given the url of an image.
|