for(var i = 1; i <= global.save_data.player.maxHP; i++)
{
	if i <= global.playerHP
		draw_sprite_ext(sPlayerHP, 0,
		playerHP_x[i], playerHP_y[i], 3, 3, 0, c_white, 1.0);
	else
		draw_sprite_ext(sPlayerHP, 1,
		playerHP_x[i], playerHP_y[i], 3, 3, 0, c_white, 1.0);
}

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,
RES_W * 0.02, RES_H * 0.1, 3, 3, 0, c_white, 1.0);
shader_reset();

/*
draw_sprite_ext(sCreditIndi, 0, RES_W * 0.03, RES_H * 0.2, 0.75, 0.75, 0, c_white, 1.0);
draw_set_halign(fa_left);
draw_set_valign(fa_middle);
draw_set_colour(make_colour_rgb(64, 144, 224));
draw_text(96, 188, string(round(global.save_data.player.Credit - credit_pickup)));
if credit_pickup > 0
{
	draw_set_colour(c_yellow);
	draw_text(96, 232, "+" + string(round(credit_pickup)));
}
draw_set_colour(c_white);

if credit_pickup_timer > 0
	credit_pickup_timer--;
else if credit_pickup > 0
	credit_pickup -= max(credit_pickup / 50, 0.25);
	*/