CommitLog |

This commit is contained in:
SilicaAndPina 2020-07-25 18:26:58 +12:00
parent e064f6d571
commit 29110d6a69
2 changed files with 7 additions and 28 deletions

View File

@ -28,21 +28,24 @@
<string>/// GENERATE CHUNK
instance_list = ds_list_create();
loaded = true;
var hasGeneratedBlackHole = false;
// GENERATION
for(var xx = 0; xx &lt; CHUNK_SIZE*TILE_SIZE; xx+= TILE_SIZE)
{
for(var yy = 0; yy &lt; 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 &lt; 100 &gt; 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 &lt; 1)

View File

@ -253,30 +253,6 @@ image_angle -= 5;
}
image_angle += 5;
</string>
</argument>
</arguments>
</action>
</event>
<event eventtype="5" enumb="0">
<action>
<libid>1</libid>
<id>603</id>
<kind>7</kind>
<userelative>0</userelative>
<isquestion>0</isquestion>
<useapplyto>-1</useapplyto>
<exetype>2</exetype>
<functionname></functionname>
<codestring></codestring>
<whoName>self</whoName>
<relative>0</relative>
<isnot>0</isnot>
<arguments>
<argument>
<kind>1</kind>
<string>/// Release keys.
event_perform(ev_keyrelease,ord('W'));
</string>
</argument>
</arguments>