CommitLog |

This commit is contained in:
SilicaAndPina 2020-07-25 18:03:40 +12:00
parent e60c04be85
commit bc21fc5141
6 changed files with 13 additions and 7 deletions

View File

@ -26,7 +26,7 @@
<argument>
<kind>1</kind>
<string>image_speed = 0;
image_index = random_range(0,1);
image_index = random_range(0,2);
angle = random_range(0,180);
direction = angle;
image_angle = angle;

View File

@ -31,7 +31,7 @@
</arguments>
</action>
</event>
<event eventtype="2" enumb="0">
<event eventtype="3" enumb="2">
<action>
<libid>1</libid>
<id>603</id>
@ -55,6 +55,7 @@ for(var i = 0; i &lt; 16; i ++)
var chunkat = instance_position(cX[i], cY[i],obj_chunk);
if(chunkat == noone) // create
{
show_debug_message("Generating Chunk: "+string(cX[i])+","+string(cY[i]));
var chunkInstId = instance_create(cX[i],cY[i],obj_chunk);
ds_list_add(global.allchunks,chunkInstId);
}
@ -62,6 +63,7 @@ for(var i = 0; i &lt; 16; i ++)
{
if(chunkat.loaded = false)
{
show_debug_message("Loading Chunk: "+string(cX[i])+","+string(cY[i]));
with(chunkat){
event_user(1);
}
@ -73,7 +75,7 @@ for(var i = 0; i &lt; 16; i ++)
</arguments>
</action>
</event>
<event eventtype="3" enumb="0">
<event eventtype="3" enumb="1">
<action>
<libid>1</libid>
<id>603</id>
@ -140,7 +142,6 @@ for(var xx = 0; xx &lt; 4; xx++)
}
}
alarm[0] = 1;
</string>
</argument>

View File

@ -313,7 +313,9 @@ if(energy &gt;= 20)
<arguments>
<argument>
<kind>1</kind>
<string>if(dead == false)
<string>/// Show Game over screen
if(dead == false)
{
return 0;
}

View File

@ -56,6 +56,8 @@ obj_player.y = obj_player.ystart;
obj_player.energy = obj_player.energy_max;
obj_player.hp = obj_player.hp_max;
obj_player.speed = 0;
obj_player.invuln_counter = 0;
obj_player.dead = false;
obj_player.visible = true;
obj_player.image_speed = 0;

Binary file not shown.

After

Width:  |  Height:  |  Size: 324 B

View File

@ -8,9 +8,9 @@
<sepmasks>0</sepmasks>
<bboxmode>0</bboxmode>
<bbox_left>1</bbox_left>
<bbox_right>25</bbox_right>
<bbox_right>29</bbox_right>
<bbox_top>4</bbox_top>
<bbox_bottom>24</bbox_bottom>
<bbox_bottom>30</bbox_bottom>
<HTile>0</HTile>
<VTile>0</VTile>
<TextureGroups>
@ -22,5 +22,6 @@
<frames>
<frame index="0">images\spr_asteroid_0.png</frame>
<frame index="1">images\spr_asteroid_1.png</frame>
<frame index="2">images\spr_asteroid_2.png</frame>
</frames>
</sprite>