This function creates a new DS grid data structure of the specified cell width and height. The function returns DS Grid Handle which must be used in all further functions that deal with this DS grid.
ds_grid_create(w, h);
Argument | Type | Description |
---|---|---|
w | Real | The width of the grid to be created. |
h | Real | The height of the grid to be created. |
mygrid = ds_grid_create(10, 10);
This creates a grid 10 cells high and 10 cells wide.