ctlayon/GravityWell — pull request #1 by JiMMaR (2012-06-15 07:42:44+00:00)
Title: Reorganized code

It's always a better idea to try and separate the graphics from the logic
so I changed parts of the code where you extended sprites/rectangles into making them as objects under the class [so if you decided to for example change the brick from a rectangle to a sprite , you can do that very easy]

I also added some methods to your classes [ex: getX() , getWidth()] so you don't have to do something like b.sprite.getX()
sprite is also no longer a public variable , it's private now and can be accessed with getSprite()