Your method does not really store a brick, it just draws a filled rectangle.
Like Norm said in post #29, you should have a brick class (and a ball class).
The brick class constructor would be...
Type: Posts; User: jps
Your method does not really store a brick, it just draws a filled rectangle.
Like Norm said in post #29, you should have a brick class (and a ball class).
The brick class constructor would be...
Only using one brick, (for now) is not a good reason to continue down a rocky road.
Correct. So even if the brick was gone rather than 'invisible-on-screen', your method will still signal that you...
In 3 different methods you have the same line (except once the variable name is different:This tells me you should have a higher level scope for just one variable and use it in all of the methods.
...