New answers tagged rts
Well the way I was taught in university was to first store your units in memory based on their cell location. So you have a square-grid of cells (you might need to play around with the cell size to find which is most efficient), and whenever a unit moves, you update its cell (if it changes, remove it from its old cell and add it to the new one). Note, you're ...
Top 50 recent answers are included