I am making a tile-based game. I want to create a struct for the data from the level file. I have this:
struct TILE
{
int TEX; // Holds texture ID
int *DIM; // Holds number of x, y tiles
};
how would I create a loop and use sscanf(); to extract the amount of x, y tiles. And then, get the numbers on each tile. For example:
11111
12221
12221
12221
11111
Any help is appreciated!