draw_sprite_ext(sPlayerHPBackground, 1, offset_x, offset_y, 5, 5, 0, c_white, 1.0);
// 1 for empty image

for(var i = 1; i <= global.save_data.player.maxHP; i++)
{
	if i <= global.playerHP
		draw_sprite(sPlayerHP, 0, playerHP_x[i] + offset_x, playerHP_y[i] + offset_y);
	else
		draw_sprite(sPlayerHP, 1, playerHP_x[i] + offset_x, playerHP_y[i] + offset_y);
}

if global.playerINK == global.save_data.player.maxINK
{
	flash_duration = 1;
	flash_timer = 0.6 * abs(sin(current_time * 0.0025));
}
else flash_timer -= global.time_scale;

if flash_timer > 0
{
	shader_set(sh_flash);
    var _alpha = flash_timer / flash_duration;
    shader_set_uniform_f(u_flash_alpha, _alpha);
}
draw_sprite_ext(sPlayerINK, global.playerINK, offset_x, 96, 4, 4, 0, c_white, 1.0);
shader_reset();

if true
{
	draw_sprite(sCredit, 0, offset_x, 192);
}