20 lines
308 B
Text
20 lines
308 B
Text
///generate_chunk()
|
|
|
|
var chunk_grid = ds_grid_create(128,128);
|
|
|
|
for(var xx = 0; xx < 128; xx++)
|
|
{
|
|
for(var yy = 0; yy < 128; yy++)
|
|
{
|
|
if(random_range(0,10) > 5)
|
|
{
|
|
chunk_grid = obj_asteriod;
|
|
}
|
|
else
|
|
{
|
|
chunk_grid = 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
|