ds_grid_create

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.

 

Syntax:

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.

 

Returns:

DS Grid

 

Example:

mygrid = ds_grid_create(10, 10);

This creates a grid 10 cells high and 10 cells wide.