title: Random Falling Objects and Collision Detection Method
body: <p>I'm programming a game where you can catch objects falling from the top of the screen (bitmaps). These bitmaps will all have the same image file. However, I want a random amount of them to fall infinitely (until the game is "over"). My problem now is coming up with the algorithm to detect the catching of these randomly produced bitmaps. I can register a catch when I have just one image falling, but I don't know how I'll implement multiple images falling and be able to implement collision detection. So far, I came up with two ideas. One of them is to have a queue, and each falling object gets put in the queue when it is created. The program will only ever detect if the box has caught the object in the first position of the queue. If it (a) is caught or ( reaches a certain point on the screen, that object will then be dequeued. The other idea I had is more of a question - am I able to create a class for this falling Object, and have a method inside it that handles the collisions? One that is always listening for a collision whenever a new instance of that class is created? </p>
  
  <p>Let me know your thoughts and suggestions please! </p>