25 reputation
6
bio website jacobmillward.com
location England, United Kingdom
age 19
visits member for 1 year, 10 months
seen Jan 16 '13 at 20:26

I'm a 18 year old student from England, interested in C# and game development.


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.