How can i make an array of tiles? i have made a struct that looks something like this:
and i want to make an array of this, i have tried:Code:typedef struct _TILE {
bool blocked;
UINT graphic;
} TILE
TILE tTiles[10][10] but this doesnt seem to work, can someone please help me?
Thanks
[EDIT]
The initial thing works, but when i try to go:
doesnt workCode:int x=1;
tTiles[x].blocked = true;