From e3a65c1d5700c04f70e0757d15d368f3d169ada8 Mon Sep 17 00:00:00 2001 From: SilicaAndPina Date: Thu, 23 Jul 2020 12:04:39 +1200 Subject: [PATCH] CommitLog | --- objects/obj_controller_world_gen.object.gmx | 2 +- scripts/generate_world.gml | 29 --------------------- 2 files changed, 1 insertion(+), 30 deletions(-) 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); - } - } -} -