CommitLog |

This commit is contained in:
SilicaAndPina 2020-07-25 01:50:25 +12:00
parent 5519e5bf70
commit e60c04be85
4 changed files with 29 additions and 2 deletions

View file

@ -29,6 +29,7 @@
<paths name="paths"/> <paths name="paths"/>
<scripts name="scripts"> <scripts name="scripts">
<script>scripts\damage_player.gml</script> <script>scripts\damage_player.gml</script>
<script>scripts\save_game_data.gml</script>
</scripts> </scripts>
<objects name="objects"> <objects name="objects">
<object>objects\obj_player</object> <object>objects\obj_player</object>

View file

@ -53,7 +53,7 @@
if(!global.debug) if(!global.debug)
{ {
draw_set_color(c_white); draw_set_color(c_white);
draw_healthbar(10,10,500,30,(obj_player.energy/obj_player.energy_max)*100,c_gray,c_yellow,c_blue,0,true,false); draw_healthbar(10,10,500,30,(obj_player.energy/obj_player.energy_max)*100,c_gray,c_blue,c_navy,0,true,false);
draw_text(11,13,string(obj_player.energy)+" / "+string(obj_player.energy_max)); draw_text(11,13,string(obj_player.energy)+" / "+string(obj_player.energy_max));
draw_healthbar(10,40,300,60,(obj_player.hp/obj_player.hp_max)*100,c_gray,c_red,c_green,0,true,false); draw_healthbar(10,40,300,60,(obj_player.hp/obj_player.hp_max)*100,c_gray,c_red,c_green,0,true,false);

View file

@ -8,6 +8,29 @@
<parentName>&lt;undefined&gt;</parentName> <parentName>&lt;undefined&gt;</parentName>
<maskName>&lt;undefined&gt;</maskName> <maskName>&lt;undefined&gt;</maskName>
<events> <events>
<event eventtype="0" 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>global.allchunks = ds_list_create();
</string>
</argument>
</arguments>
</action>
</event>
<event eventtype="2" enumb="0"> <event eventtype="2" enumb="0">
<action> <action>
<libid>1</libid> <libid>1</libid>
@ -32,7 +55,8 @@ for(var i = 0; i &lt; 16; i ++)
var chunkat = instance_position(cX[i], cY[i],obj_chunk); var chunkat = instance_position(cX[i], cY[i],obj_chunk);
if(chunkat == noone) // create if(chunkat == noone) // create
{ {
instance_create(cX[i],cY[i],obj_chunk); var chunkInstId = instance_create(cX[i],cY[i],obj_chunk);
ds_list_add(global.allchunks,chunkInstId);
} }
else // load else // load
{ {

View file

@ -0,0 +1,2 @@
///save_game_data