CommitLog |

This commit is contained in:
SilicaAndPina 2020-07-25 18:20:00 +12:00
parent bc21fc5141
commit e064f6d571
7 changed files with 123 additions and 8 deletions

View file

@ -34,12 +34,24 @@ for(var xx = 0; xx < CHUNK_SIZE*TILE_SIZE; xx+= TILE_SIZE)
{
for(var yy = 0; yy < CHUNK_SIZE*TILE_SIZE; yy+= TILE_SIZE)
{
if(random_range(0,100) < 1)
var rnd = random_range(0,500);
show_debug_message("Generation: "+string(rnd))
if(rnd < 100 > 200)
{
var inst = instance_create(x+xx,y+yy, obj_black_hole);
inst.CHUNK_CONTAINED = self.id;
ds_list_add(instance_list, inst);
continue;
}
if(rnd % 100 < 1)
{
var inst = instance_create(x+xx,y+yy, obj_asteriod);
inst.CHUNK_CONTAINED = self.id;
ds_list_add(instance_list, inst);
continue;
}
}
}