Render entire hud as sprites to avoid font functions

This commit is contained in:
stevenhowes
2021-03-27 21:48:04 +00:00
parent c32884d225
commit 9edde1d947
4 changed files with 9 additions and 15 deletions
Binary file not shown.
+5
View File
@@ -26,6 +26,11 @@ Linkflags = -aif -o $@
# Dynamic dependencies: # 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.CTheEscape
o.CTheEscape: C:h.swis o.CTheEscape: C:h.swis
o.CTheEscape: C:h.kernel o.CTheEscape: C:h.kernel
BIN
View File
Binary file not shown.
+4 -15
View File
@@ -883,21 +883,10 @@ void game_setup_audio()
void game_draw_hud() void game_draw_hud()
{ {
draw_sprite("lcars",4,DISPLAY_Y-180); draw_sprite("lcars",4,DISPLAY_Y-164);
draw_sprite("pointer",141+(Player.shields*2),DISPLAY_Y - 164 + 84);
font_colour(colours[lcars_violet1],colours[lcars_black],font[sys_12_8]); draw_sprite("pointer",141+(Player.integrity*2),DISPLAY_Y - 164 + 44);
draw_sprite("pointer",141+(Player.remainingdistance/7500),DISPLAY_Y - 164 + 4);
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]);
} }
void game_setup() void game_setup()