Hi all! Carrying over some code from a Columns puzzle clone. I'm trying to produce the gdscript equivalent of:
typedef struct TILE
{
int x,y,type;
} TILE;
TILE grid[16][16];
//example
grid[0][0].type = 3
//example
int x = 0;
int y = 0;
for(a = 0; a < 16; a++)
{
for(b = 0; b < 16; b++)
{
grid[a][b].x = x;
grid[a][b].y = y;
y += 16;
}
x += 16;
y = 0;
}
So just a struct to a 2D array, giving the tiles as many properties as desired. Would anyone know how all this might be written in gdscript? Been stumbling on it for a while! Thanks!!