Questions tagged [initbricks]
The initbricks tag has no usage guidance.
4
questions
0
votes
1
answer
205
views
(pset3) breakout initBrick issue
I'm currently trying to instantiate 1 row of bricks before moving on to 5. Before implementing the for loop I made sure I could instantiate 1 brick on the screen, exactly where i want it. No problem ...
0
votes
1
answer
189
views
breakout initBricks Why do I get 10 rows and 5 columns?
So I have been trying to initiate the bricks for breakout in pset3. But the outcome of my nested loop is this :
I don't understand why I get 10 rows and 5 columns of bricks, rather than 5 rows and ...
0
votes
2
answers
200
views
in pset4 only 1 row of bricks appear even with nested loop
This is what I've done so far for pset 4 (I've started on main, initPaddle & initBricks)
I have trouble printing out the bricks on the screen from the 2nd row onwards; the window doesn't show ...
0
votes
3
answers
324
views
initBricks as a 2d array of labelled bricks
i am trying to create a labelled 2d array of GRects called brick[i][j]. implementing the code below i am getting an error:
breakout.c:112:23: error: variable-sized object may not be initialized
......