CommitLog |

This commit is contained in:
SilicaAndPina 2020-07-24 17:30:13 +12:00
parent d0a28aa811
commit 1a1ff2e351
6 changed files with 10 additions and 7 deletions

View File

@ -22,7 +22,6 @@
<background>background\bg_space</background>
</backgrounds>
<paths name="paths"/>
<scripts name="scripts"/>
<objects name="objects">
<object>objects\obj_player</object>
<object>objects\obj_controller_world_gen</object>

View File

@ -69,7 +69,7 @@ for(var xx = 0; xx &lt; CHUNK_SIZE*TILE_SIZE; xx+= TILE_SIZE)
<string>var chunk_total_size = CHUNK_SIZE * TILE_SIZE
if(distance_to_object(obj_player) &gt; chunk_total_size+(TILE_SIZE*5))
if(distance_to_object(obj_player) &gt; 1)
{
event_user(0);
}

View File

@ -50,6 +50,8 @@
<kind>1</kind>
<string>/// Every Frame Global Code.
step_counter++;
x = view_xview[0];
y = view_yview[0];
</string>
</argument>
</arguments>

View File

@ -63,6 +63,8 @@ var chunkRelY = playY % chunk_total_size;
var chunkX = (obj_player.x - chunkRelX);
var chunkY = (obj_player.y - chunkRelY);
// Fix annoyances where % negative = positive
if(chunkX &lt; 0)
{
chunkX -= chunk_total_size;
@ -84,7 +86,7 @@ if(chunkX == 0 &amp;&amp; (playX &lt; 0 &amp;&amp; playX &gt;= chunk_total_size/
}
instance_activate_region(chunkX,chunkY,12,12,true);
instance_activate_region(chunkX,chunkY,1,1,true);
var chunkat = instance_position(chunkX, chunkY,obj_chunk);
if(chunkat == noone) // create

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 B

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

@ -8,17 +8,17 @@
<sepmasks>0</sepmasks>
<bboxmode>1</bboxmode>
<bbox_left>0</bbox_left>
<bbox_right>9</bbox_right>
<bbox_right>511</bbox_right>
<bbox_top>0</bbox_top>
<bbox_bottom>9</bbox_bottom>
<bbox_bottom>511</bbox_bottom>
<HTile>0</HTile>
<VTile>0</VTile>
<TextureGroups>
<TextureGroup0>0</TextureGroup0>
</TextureGroups>
<For3D>0</For3D>
<width>10</width>
<height>10</height>
<width>512</width>
<height>512</height>
<frames>
<frame index="0">images\spr_chunk_0.png</frame>
</frames>