ludum-dare-22/objects/obj_3Dmanager/Draw_0.gml

37 lines
1.2 KiB
Plaintext
Raw Normal View History

// 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)
draw_text(120,10,string_hash_to_newline(global.life))
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)