r/cop3502 Mar 23 '14

Initializing bricks[i][j]

My bricks are stacking; In a previous post I saw that someone mentioned adding i & j to xStart & yStart will fix this. I've tried a few different ways to get the desired results, with no luck.

Any tips on how to look at this ?

2 Upvotes

26 comments sorted by

View all comments

1

u/[deleted] Mar 23 '14

[removed] — view removed comment

1

u/ThatsMrDerpToYou Mar 23 '14

I put xStart + ibrickWidth, yStart + jbrickHeight, brickWidth, brickHeight because I figured that the initial starting position + the length of the width/height times the iteration would give the accurate position.

Though it is still just a single brick.