2021-06-28 18:44:09 -07:00
|
|
|
// HUD
|
|
|
|
d3d_set_projection_ortho(0,0,1024,768,0)
|
|
|
|
d3d_set_lighting(false)
|
|
|
|
draw_set_font(fn_main)
|
|
|
|
draw_text(800,700,string_hash_to_newline("FPS: / 30"))
|
|
|
|
draw_text(900,700,string_hash_to_newline(fps))
|
|
|
|
draw_set_font(fn_big)
|
|
|
|
draw_sprite(spr_life,0,10,10)
|
2021-07-07 23:43:05 -07:00
|
|
|
draw_text(120,10,string_hash_to_newline(global.life))
|
2021-06-28 18:44:09 -07:00
|
|
|
draw_sprite(spr_bombs,0,10,84)
|
|
|
|
draw_text(120,84,string_hash_to_newline(global.bombs))
|
|
|
|
draw_set_font(fn_main)
|
|
|
|
draw_text(600,10,string_hash_to_newline("Score:"))
|
|
|
|
draw_text(600,40,string_hash_to_newline("Hi-score:"))
|
|
|
|
draw_text(750,10,string_hash_to_newline(global.scores))
|
|
|
|
if global.scores > global.hiscore
|
|
|
|
draw_text(750,40,string_hash_to_newline(global.scores))
|
|
|
|
else
|
|
|
|
draw_text(750,40,string_hash_to_newline(global.hiscore))
|
|
|
|
if global.extend > 0
|
|
|
|
{
|
|
|
|
draw_text(500,200,string_hash_to_newline("Extend!"))
|
|
|
|
global.extend -= 1
|
|
|
|
}
|
|
|
|
if global.mesmult > 0
|
|
|
|
{
|
|
|
|
draw_text(475,230,string_hash_to_newline(global.mult))
|
|
|
|
draw_text(520,230,string_hash_to_newline("multiplier!"))
|
|
|
|
global.mesmult -= 1
|
|
|
|
}
|
|
|
|
lifecount = 0
|
|
|
|
d3d_set_lighting(true)
|
|
|
|
|
|
|
|
d3d_set_projection_perspective(0,0,1024,768,0)
|
|
|
|
d3d_set_projection(x,y,z,x,y+100,obj_player.z,0,0,1)
|
|
|
|
|