View Single Post
  #5  
Old 01-28-2014, 02:57 AM
100Zero100 100Zero100 is offline
Registered User
Join Date: Jul 2006
Posts: 31
100Zero100 is on a distinguished road
You could opt to just make a grid of indices that correlates to the image grid. When an item is placed into the grid, it would set indices of the array to 1 where it's blocking.

Should be pretty simple using standard grid algorithms (ie, mod and int division)
__________________
Hi. I'm NaS!
Reply With Quote