diff --git a/objects/obj_controller_world_gen.object.gmx b/objects/obj_controller_world_gen.object.gmx index 5f72b4e..c157ec2 100644 --- a/objects/obj_controller_world_gen.object.gmx +++ b/objects/obj_controller_world_gen.object.gmx @@ -47,7 +47,7 @@ starty = starty - (starty % 32); - + 1 603 diff --git a/scripts/generate_world.gml b/scripts/generate_world.gml index 5148205..139597f 100644 --- a/scripts/generate_world.gml +++ b/scripts/generate_world.gml @@ -1,31 +1,2 @@ -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 <= count; i++) - { - if(obj_controller_world_gen.generated_areas[i] == expe) - { - should_continue = true; - break; - } - } - if(should_continue) - { - continue; - } - - obj_controller_world_gen.generated_areas[obj_controller_world_gen.generated_count] = expe; - obj_controller_world_gen.generated_count ++; - - if(random_range(0,10) > 5) - { - instance_create(xx,yy,obj_asteriod); - } - } -} -