I struggle with efficiency in code, and I want to start my game off on the right foot.
I have a game that I'm making a 4 x 4 map of 'tiles' that a user can build their 'town' on. To keep track of the tiles, I'm planning on simply having a size-16 array of the type of my 'mapTile' enum. EX:
enum MapTiles { defaultTile, homeBase, farm1, farm2 /*...and so on...*/ };
static MapTiles playerMap[] = MapTiles[16] { /* ... default map setup ... */ };
Is there a way that is more efficient or more easy-to-extend way to implement such a map?
I'm using Unity and C# mostly, though i'm willing to work with any Unity-capable language if you have a clever answer.