75 lines
2.1 KiB
Plaintext
75 lines
2.1 KiB
Plaintext
/// @description HUD
|
|
//change to 2D mode
|
|
d3d_set_projection_ortho(0,0,800,600,0)
|
|
d3d_set_lighting(false)
|
|
d3d_set_fog(false, c_white, 600, 3000);
|
|
ta = 0
|
|
while ta < lives
|
|
{
|
|
draw_sprite_stretched(spr_player,0,5+65*ta,5,50,50)
|
|
ta += 1
|
|
}
|
|
draw_set_font(fn_main)
|
|
draw_set_halign(fa_right)
|
|
draw_text(600,5,string_hash_to_newline("Score:"))
|
|
draw_text(600,30,string_hash_to_newline("Hi-score:"))
|
|
draw_set_halign(fa_left)
|
|
draw_text(605,5,string_hash_to_newline(score))
|
|
if obj_stagemanager.alarm[11]
|
|
{
|
|
draw_set_halign(fa_center)
|
|
draw_text(400,200,string_hash_to_newline("Stage Bonus"))
|
|
draw_text(400,240,string_hash_to_newline(global.stage*100000))
|
|
draw_set_halign(fa_left)
|
|
}
|
|
if global.boss > 0
|
|
{
|
|
draw_set_alpha(.75)
|
|
draw_set_color(c_black)
|
|
draw_roundrect(100,65,700,85,false)
|
|
draw_set_alpha(1)
|
|
draw_set_color(c_fuchsia)
|
|
draw_roundrect(100,65,100+((obj_boss.life*600)/obj_boss.maxlife),85,false)
|
|
draw_set_alpha(1)
|
|
draw_set_color(c_black)
|
|
draw_roundrect(100,65,700,85,true)
|
|
draw_set_color(c_white)
|
|
draw_set_font(fn_smaller)
|
|
switch global.boss
|
|
{
|
|
case 1:
|
|
draw_text(125,90,string_hash_to_newline("Maynii"))
|
|
break;
|
|
case 2:
|
|
draw_text(125,90,string_hash_to_newline("Shalmii"))
|
|
break;
|
|
case 3:
|
|
draw_text(125,90,string_hash_to_newline("Tailii"))
|
|
break;
|
|
case 4:
|
|
draw_text(125,90,string_hash_to_newline("Eisiol"))
|
|
break;
|
|
case 5:
|
|
draw_text(125,90,string_hash_to_newline("Salia"))
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
}
|
|
draw_set_font(fn_main)
|
|
|
|
if global.hiscore > score
|
|
{
|
|
draw_text(605,30,string_hash_to_newline(global.hiscore))
|
|
}
|
|
else
|
|
{
|
|
draw_text(605,30,string_hash_to_newline(score))
|
|
}
|
|
draw_text(800*(800/1024),700*(800/1024),string_hash_to_newline("FPS: / 30"))
|
|
draw_text(900*(600/768),700*(600/768),string_hash_to_newline(fps))
|
|
//change back to 3D mode
|
|
d3d_set_projection_perspective(0,0,800,600,0)
|
|
d3d_set_projection(obj_3Dstuff.x,obj_3Dstuff.y,obj_3Dstuff.z,obj_3Dstuff.x,obj_3Dstuff.y+100,0,0,0,1)
|
|
|