mirror of
https://github.com/stevenhowes/CTheEscape.git
synced 2026-05-26 15:53:29 +01:00
Render entire hud as sprites to avoid font functions
This commit is contained in:
Binary file not shown.
@@ -26,6 +26,11 @@ Linkflags = -aif -o $@
|
||||
|
||||
# Dynamic dependencies:
|
||||
|
||||
o.CTheEscape: c.CTheEscape
|
||||
o.CTheEscape: C:h.swis
|
||||
o.CTheEscape: C:h.kernel
|
||||
o.CTheEscape: C:h.kernel
|
||||
o.CTheEscape: h.Sound
|
||||
o.CTheEscape: c.CTheEscape
|
||||
o.CTheEscape: C:h.swis
|
||||
o.CTheEscape: C:h.kernel
|
||||
|
||||
Binary file not shown.
+4
-15
@@ -883,21 +883,10 @@ void game_setup_audio()
|
||||
|
||||
void game_draw_hud()
|
||||
{
|
||||
draw_sprite("lcars",4,DISPLAY_Y-180);
|
||||
|
||||
font_colour(colours[lcars_violet1],colours[lcars_black],font[sys_12_8]);
|
||||
|
||||
sprintf(hudbuffer,"%i",Player.shields);
|
||||
draw_text(hudbuffer,230,DISPLAY_Y-62,font[sys_12_8]);
|
||||
|
||||
sprintf(hudbuffer,"%i",Player.integrity);
|
||||
draw_text(hudbuffer,230,DISPLAY_Y-92,font[sys_12_8]);
|
||||
|
||||
sprintf(hudbuffer,"%i",Player.velocity);
|
||||
draw_text(hudbuffer,230,DISPLAY_Y-122,font[sys_12_8]);
|
||||
|
||||
sprintf(hudbuffer,"%i",Player.remainingdistance/1000);
|
||||
draw_text(hudbuffer,230,DISPLAY_Y-152,font[sys_12_8]);
|
||||
draw_sprite("lcars",4,DISPLAY_Y-164);
|
||||
draw_sprite("pointer",141+(Player.shields*2),DISPLAY_Y - 164 + 84);
|
||||
draw_sprite("pointer",141+(Player.integrity*2),DISPLAY_Y - 164 + 44);
|
||||
draw_sprite("pointer",141+(Player.remainingdistance/7500),DISPLAY_Y - 164 + 4);
|
||||
}
|
||||
|
||||
void game_setup()
|
||||
|
||||
Reference in New Issue
Block a user