add broken ships

This commit is contained in:
SilicaAndPina 2020-09-09 11:53:46 +12:00
parent a9faaf94e6
commit 63ada3dd33
16 changed files with 330 additions and 16 deletions

View file

@ -26,6 +26,7 @@
<argument>
<kind>1</kind>
<string>global.debug = false
global.hide = false;
</string>
</argument>
</arguments>
@ -50,15 +51,17 @@
<kind>1</kind>
<string>/// Draw HUD
if(!global.debug)
{
draw_set_color(c_white);
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_healthbar(10,40,300,60,(obj_player.hp/obj_player.hp_max)*100,c_gray,c_red,c_green,0,true,false);
draw_text(11,43,string(obj_player.hp)+" / "+string(obj_player.hp_max));
if(!global.hide){
if(!global.debug)
{
draw_set_color(c_white);
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_healthbar(10,40,300,60,(obj_player.hp/obj_player.hp_max)*100,c_gray,c_red,c_green,0,true,false);
draw_text(11,43,string(obj_player.hp)+" / "+string(obj_player.hp_max));
}
}
@ -184,6 +187,38 @@ else
{
global.debug = false
}
</string>
</argument>
</arguments>
</action>
</event>
<event eventtype="9" enumb="112">
<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>if(!global.hide)
{
global.hide = true;
instance_destroy(obj_hotbar);
}
else
{
global.hide = false
instance_create(0,0,obj_hotbar);
}
</string>
</argument>
</arguments>