Reputation
Top tag
Next privilege 50 Rep.
Comment everywhere
Badges
7
Impact
~4k people reached

  • 0 posts edited
  • 0 helpful flags
  • 4 votes cast
Nov
3
comment Foreach loop with 2d array of objects
Nevermind, I fixed it myself by using: for (int x = 0; x <= screenRectangle.Width / texture.Width; x++) { for (int y = 0; y <= screenRectangle.Height / texture.Width; y++) { blockList[x, y].Draw(spriteBatch); } }
Nov
3
comment Foreach loop with 2d array of objects
Yup, just a simple 16x16 texture. And I stated it was an array, however I've called it blockList. Confusing I know.
Nov
3
comment Foreach loop with 2d array of objects
Actually, I AM using a fixed size 2D array. I've updated the original question with the declaration code.