CommitLog |
This commit is contained in:
parent
e064f6d571
commit
29110d6a69
2 changed files with 7 additions and 28 deletions
|
@ -28,21 +28,24 @@
|
|||
<string>/// GENERATE CHUNK
|
||||
instance_list = ds_list_create();
|
||||
loaded = true;
|
||||
var hasGeneratedBlackHole = false;
|
||||
|
||||
// GENERATION
|
||||
for(var xx = 0; xx < CHUNK_SIZE*TILE_SIZE; xx+= TILE_SIZE)
|
||||
{
|
||||
for(var yy = 0; yy < CHUNK_SIZE*TILE_SIZE; yy+= TILE_SIZE)
|
||||
{
|
||||
var rnd = random_range(0,500);
|
||||
var rnd = random_range(0,1000);
|
||||
|
||||
show_debug_message("Generation: "+string(rnd))
|
||||
if(rnd < 100 > 200)
|
||||
{
|
||||
if(floor(rnd) == 500)
|
||||
{
|
||||
if(hasGeneratedBlackHole)
|
||||
continue;
|
||||
var inst = instance_create(x+xx,y+yy, obj_black_hole);
|
||||
inst.CHUNK_CONTAINED = self.id;
|
||||
|
||||
ds_list_add(instance_list, inst);
|
||||
hasGeneratedBlackHole = true;
|
||||
continue;
|
||||
}
|
||||
if(rnd % 100 < 1)
|
||||
|
|
Reference in a new issue