diff --git a/objects/obj_chunk.object.gmx b/objects/obj_chunk.object.gmx
index 3777f47..a2db25d 100644
--- a/objects/obj_chunk.object.gmx
+++ b/objects/obj_chunk.object.gmx
@@ -28,21 +28,24 @@
/// 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)
diff --git a/objects/obj_player.object.gmx b/objects/obj_player.object.gmx
index 11dd3c9..3b1d240 100644
--- a/objects/obj_player.object.gmx
+++ b/objects/obj_player.object.gmx
@@ -253,30 +253,6 @@ image_angle -= 5;
}
image_angle += 5;
-
-
-
-
-
-
-
- 1
- 603
- 7
- 0
- 0
- -1
- 2
-
-
- self
- 0
- 0
-
-
- 1
- /// Release keys.
-event_perform(ev_keyrelease,ord('W'));