So I have two 2D array layers, one of the ground/terrain and another that contains entities/units.
One item can occupy a spot at a time, but since I want some entities to overlap, how can I efficiently do this?
I have already tried doing it with a list, but I don't prefer it since I have to run through the whole list each time I want a specific entity, when in a 2D array I can just do Entities[x,y] and I have the specific entity I want.
No code necessary, just an explanation. Thanks