CommitLog |
This commit is contained in:
parent
e74edd8841
commit
a9c35b6d6c
9 changed files with 128 additions and 60 deletions
20
scripts/generate_chunk.gml
Normal file
20
scripts/generate_chunk.gml
Normal file
|
@ -0,0 +1,20 @@
|
|||
///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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in a new issue