CommitLog |

This commit is contained in:
SilicaAndPina 2020-07-23 12:06:36 +12:00
parent e3a65c1d57
commit ee7afa2a68

View file

@ -1,2 +1,31 @@
for(var xx = startx; xx < xmax;xx+=32)
{
for(var yy = starty; yy < ymax;yy+=32)
{
var expe = string(xx)+string(yy)
var should_continue = false;
for(var i = 0; i <= generated_count; i++)
{
if(obj_controller_world_gen.generated_areas[i] == expe)
{
should_continue = true;
break;
}
}
if(should_continue)
{
continue;
}
generated_areas[generated_count] = expe;
generated_count ++;
if(random_range(0,10) > 5)
{
instance_create(xx,yy,obj_asteriod);
}
}
}