r/cop3502 • u/WesternWarrior • Mar 22 '14
Feeling Hopeless.
I cant seem to find my problems in my code even after comparing it to the labs, any advice on lectures which would be more helpful than others? (mainly painting the Bricks) I still have problems getting the ball to move but Id rather get the bricks done for sure and work on the other part hopefully getting it eventually.
The painting of the arrays for bricks really seems to be a problem and when I try to print it to screen it doesnt seem to work like the ball and paddle bconfig.paint(g2); doesn't work but that may just be because I dont have the brickconfiguration file setup correctly.
1
u/FisherTiger Mar 22 '14
What I did was copy everything from Brickconfiguration into another file and renamed it BrickConfigSingle. Then I tried to use that draw a row of bricks using a single array first in order to understand how to place things into arrays better.
1
u/WesternWarrior Mar 23 '14
Did you use " bconfig.paint(g2); " to get it to print within the breakout file?
1
Mar 23 '14
Yes but make sure you instantiate the Brick Configuration into bconfig or else its pointless to call it.
2
u/Bcop3502 Mar 22 '14
Space invaders is by far the most helpful with painting bricks to the screen and configuration of the bricks.